Add GitOps policy to auto-label backport candidates when CL-BuildPackaging is added (#26881)

This commit is contained in:
Copilot
2026-02-23 12:35:13 -08:00
committed by GitHub
parent 7ca2b72af7
commit f3eb51b1f4
@@ -0,0 +1,56 @@
id: labelAdded.clBuildPackaging.addBackportConsider
name: GitOps.PullRequestIssueManagement
description: Add backport consideration labels when CL-BuildPackaging is added to an open PR targeting master
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Add BackPort-7.4.x-Consider when CL-BuildPackaging is added to open PR targeting master
if:
- payloadType: Pull_Request
- isOpen
- labelAdded:
label: CL-BuildPackaging
- targetsBranch:
branch: master
- not:
hasLabel:
label: BackPort-7.4.x-Consider
then:
- addLabel:
label: BackPort-7.4.x-Consider
- description: Add BackPort-7.5.x-Consider when CL-BuildPackaging is added to open PR targeting master
if:
- payloadType: Pull_Request
- isOpen
- labelAdded:
label: CL-BuildPackaging
- targetsBranch:
branch: master
- not:
hasLabel:
label: BackPort-7.5.x-Consider
then:
- addLabel:
label: BackPort-7.5.x-Consider
- description: Add BackPort-7.6.x-Consider when CL-BuildPackaging is added to open PR targeting master
if:
- payloadType: Pull_Request
- isOpen
- labelAdded:
label: CL-BuildPackaging
- targetsBranch:
branch: master
- not:
hasLabel:
label: BackPort-7.6.x-Consider
then:
- addLabel:
label: BackPort-7.6.x-Consider
onFailure:
onSuccess: