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

TypeAlias TemplatableBool

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

TemplatableBool represents a boolean frontmatter field that also accepts GitHub Actions expression strings (e.g. "${{ inputs.enabled }}"). The underlying value is always stored as a string: boolean literals as "true" or "false", expressions verbatim.

Source from the content-addressed store, hash-verified

141// underlying value is always stored as a string: boolean literals as "true" or
142// "false", expressions verbatim.
143type TemplatableBool string
144
145// UnmarshalJSON allows TemplatableBool to accept both JSON booleans and JSON
146// strings that are GitHub Actions expressions.

Callers 8

UnmarshalJSONMethod · 0.85
UnmarshalYAMLMethod · 0.85
templatableBoolPtrFunction · 0.85
TestBuildAWFConfigJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected