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

Function isQualifyingSubExpression

pkg/workflow/expression_extraction.go:327–331  ·  view source on GitHub ↗

isQualifyingSubExpression reports whether expr is a simple property-access chain (matching simpleIdentifierRegex) that starts with needs.*, steps.*, or inputs.*. These are the sub-expressions for which the runtime evaluator looks up a deterministic GH_AW_* environment variable name.

(expr string)

Source from the content-addressed store, hash-verified

325// These are the sub-expressions for which the runtime evaluator looks up a deterministic
326// GH_AW_* environment variable name.
327func isQualifyingSubExpression(expr string) bool {
328 return expr != "" &&
329 simpleIdentifierRegex.MatchString(expr) &&
330 runtimeEvalEnvVarPrefixRegex.MatchString(expr)
331}
332
333// extractTerminalSubExpressions returns the simple-identifier sub-expressions from a
334// compound expression (one containing `||` or `&&` operators, and optionally parentheses)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected