CI: automatically add a warning comment to PRs with backport labels (#34132)

* CI: automatically add a warning comment to PRs with backport labels

* Update .mergify.yml

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* Update .mergify.yml

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
Justin Starry 2023-11-18 01:38:15 +08:00 committed by GitHub
parent 1e9f6d9d83
commit 45290c4689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -98,6 +98,19 @@ pull_request_rules:
ignore_conflicts: true
branches:
- v1.16
- name: v1.16 backport warning comment
conditions:
- label=v1.16
actions:
comment:
message: >
Backports to the stable branch are to be avoided unless absolutely
necessary for fixing bugs, security issues, and perf regressions.
Changes intended for backport should be structured such that a
minimum effective diff can be committed separately from any
refactoring, plumbing, cleanup, etc that are not strictly
necessary to achieve the goal. Any of the latter should go only
into master and ride the normal stabilization schedule.
- name: v1.17 feature-gate backport
conditions:
- label=v1.17
@ -122,6 +135,21 @@ pull_request_rules:
ignore_conflicts: true
branches:
- v1.17
- name: v1.17 backport warning comment
conditions:
- label=v1.17
actions:
comment:
message: >
Backports to the beta branch are to be avoided unless absolutely
necessary for fixing bugs, security issues, and perf regressions.
Changes intended for backport should be structured such that a
minimum effective diff can be committed separately from any
refactoring, plumbing, cleanup, etc that are not strictly
necessary to achieve the goal. Any of the latter should go only
into master and ride the normal stabilization schedule. Exceptions
include CI/metrics changes, CLI improvements and documentation
updates on a case by case basis.
commands_restrictions:
# The author of copied PRs is the Mergify user.