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

Method IsExpression

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

IsExpression returns true if the value is a GitHub Actions expression (i.e. starts with "${{" and ends with "}}").

()

Source from the content-addressed store, hash-verified

99// IsExpression returns true if the value is a GitHub Actions expression
100// (i.e. starts with "${{" and ends with "}}").
101func (t *TemplatableInt32) IsExpression() bool {
102 s := string(*t)
103 return isExpression(s)
104}
105
106// IntValue returns the integer value for numeric literals.
107// Returns 0 for GitHub Actions expressions, which are not evaluable at

Callers 2

ToValueMethod · 0.95

Calls 1

isExpressionFunction · 0.85

Tested by 1