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

Function isExpression

pkg/workflow/expression_patterns.go:84–86  ·  view source on GitHub ↗

isExpression reports whether the entire string s is a GitHub Actions expression.

(s string)

Source from the content-addressed store, hash-verified

82
83// isExpression reports whether the entire string s is a GitHub Actions expression.
84func isExpression(s string) bool {
85 return strings.HasPrefix(s, "${{") && strings.HasSuffix(s, "}}")
86}
87
88// Core Expression Patterns
89var (

Callers 15

UnmarshalJSONMethod · 0.85
IsExpressionMethod · 0.85
UnmarshalJSONMethod · 0.85
UnmarshalYAMLMethod · 0.85
buildTemplatableEnvVarFunction · 0.85
applySafeOutputEnvToMapFunction · 0.85
checkMaxFieldFunction · 0.85
validateSafeOutputsMaxFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestExpressionHelpersFunction · 0.68