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'
()
| 106 | // that triggers when an issue is labeled with "agentic-workflows:disable". |
| 107 | // Condition: !fork && event_name == 'issues' && event.label.name == 'agentic-workflows:disable' |
| 108 | func 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". |