From 54de4c1b4d28ea518444dc064c0a94223bcae8e7 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Fri, 1 Apr 2022 14:41:55 +0800 Subject: [PATCH] Add feature gate prompt and backport label automation (#24023) --- .github/PULL_REQUEST_TEMPLATE.md | 7 ++++++ .mergify.yml | 38 ++++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index f12c7328814f79..23ae891af2be7b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,6 +2,13 @@ + + +#### Feature Gate Details + + + + #### Summary of Changes diff --git a/.mergify.yml b/.mergify.yml index e6958436e86554..a1494ad53f9184 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -88,30 +88,50 @@ pull_request_rules: actions: dismiss_reviews: 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" + - label=v1.9 + - label=feature-gate actions: - label: - add: + backport: + ignore_conflicts: true + labels: - automerge - - name: v1.9 backport + - feature-gate + branches: + - v1.9 + - name: v1.9 non-feature-gate backport conditions: - label=v1.9 + - label!=feature-gate actions: backport: ignore_conflicts: true + labels: + - automerge branches: - v1.9 - - name: v1.10 backport + - 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: - v1.10