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

Function buildLabeledDisableCondition

pkg/workflow/maintenance_conditions.go:108–119  ·  view source on GitHub ↗

buildLabeledDisableCondition creates a condition for the disable_agentic_workflow job that triggers when an issue is labeled with "agentic-workflows:disable". Condition: !fork && event_name == 'issues' && event.label.name == 'agentic-workflows:disable'

()

Source from the content-addressed store, hash-verified

106// that triggers when an issue is labeled with "agentic-workflows:disable".
107// Condition: !fork && event_name == 'issues' && event.label.name == 'agentic-workflows:disable'
108func buildLabeledDisableCondition() ConditionNode {
109 return BuildAnd(
110 buildNotForkCondition(),
111 BuildAnd(
112 BuildEventTypeEquals("issues"),
113 BuildEquals(
114 BuildPropertyAccess("github.event.label.name"),
115 BuildStringLiteral("agentic-workflows:disable"),
116 ),
117 ),
118 )
119}
120
121// buildLabeledApplySafeOutputsCondition creates a condition for the label_apply_safe_outputs job
122// that triggers when an issue is labeled with "agentic-workflows:apply-safe-outputs".

Callers 2

Calls 6

BuildAndFunction · 0.85
buildNotForkConditionFunction · 0.85
BuildEventTypeEqualsFunction · 0.85
BuildEqualsFunction · 0.85
BuildPropertyAccessFunction · 0.85
BuildStringLiteralFunction · 0.85

Tested by 1