MCPcopy Create free account
hub / github.com/github/gh-aw / TemplatableInt32

TypeAlias TemplatableInt32

pkg/workflow/templatables.go:59–59  ·  view source on GitHub ↗

TemplatableInt32 represents an integer frontmatter field that also accepts GitHub Actions expression strings (e.g. "${{ inputs.timeout }}"). The underlying value is always stored as a string: numeric literals as their decimal representation, expressions verbatim. Use *TemplatableInt32 in struct fi

Source from the content-addressed store, hash-verified

57// timeout-minutes: 30
58// timeout-minutes: ${{ inputs.timeout }}
59type TemplatableInt32 string
60
61// UnmarshalJSON allows TemplatableInt32 to accept both JSON numbers (integer
62// literals) and JSON strings that are GitHub Actions expressions.

Callers 3

UnmarshalJSONMethod · 0.85
parseTimeoutToolFunction · 0.85
parseStartupTimeoutToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected