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

Function hasExpressionMarker

pkg/workflow/expression_patterns.go:67–69  ·  view source on GitHub ↗

hasExpressionMarker reports whether s contains a GitHub Actions expression opening marker. This is a permissive check used in scenarios where partial expressions should be treated as dynamic values.

(s string)

Source from the content-addressed store, hash-verified

65// This is a permissive check used in scenarios where partial expressions should be treated
66// as dynamic values.
67func hasExpressionMarker(s string) bool {
68 return strings.Contains(s, "${{")
69}
70
71// containsExpression reports whether s contains a complete non-empty GitHub Actions expression.
72// A complete expression has a "${{" marker that appears before a closing "}}" marker

Callers 5

TestExpressionHelpersFunction · 0.85
sanitizeCustomStepsYAMLFunction · 0.85
parseGitHubToolFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestExpressionHelpersFunction · 0.68