Add feature gate prompt and backport label automation (#24023)

This commit is contained in:
Justin Starry 2022-04-01 14:41:55 +08:00 committed by GitHub
parent 51b37f0184
commit 0188e2601b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 13 deletions

View File

@ -2,6 +2,13 @@
<!-- OPTIONAL -->
<!-- Any changes that affect the behavior of a feature activation MUST add the feature-gate label and include details -->
#### Feature Gate Details
<!-- Describe why the new or modified feature gate is needed and any necessary conditions for its activation -->
#### Summary of Changes #### Summary of Changes

View File

@ -88,30 +88,50 @@ pull_request_rules:
actions: actions:
dismiss_reviews: dismiss_reviews:
changes_requested: true changes_requested: true
- name: set automerge label on mergify backport PRs - name: v1.9 feature-gate backport
conditions:
- author=mergify[bot]
- head~=^mergify/bp/
- "#status-failure=0"
- "-merged"
actions:
label:
add:
- automerge
- name: v1.9 backport
conditions: conditions:
- label=v1.9 - label=v1.9
- label=feature-gate
actions: actions:
backport: backport:
ignore_conflicts: true ignore_conflicts: true
labels:
- automerge
- feature-gate
branches: branches:
- v1.9 - v1.9
- name: v1.10 backport - name: v1.9 non-feature-gate backport
conditions: conditions:
- label=v1.10 - label=v1.9
- label!=feature-gate
actions: actions:
backport: backport:
ignore_conflicts: true ignore_conflicts: true
labels:
- automerge
branches:
- v1.9
- name: v1.10 feature-gate backport
conditions:
- label=v1.10
- label=feature-gate
actions:
backport:
ignore_conflicts: true
labels:
- automerge
- feature-gate
branches:
- v1.10
- name: v1.10 non-feature-gate backport
conditions:
- label=v1.10
- label!=feature-gate
actions:
backport:
ignore_conflicts: true
labels:
- automerge
branches: branches:
- v1.10 - v1.10