Skip to content

Commit

Permalink
CI: automatically add a warning comment to PRs with backport labels (s…
Browse files Browse the repository at this point in the history
…olana-labs#34132)

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

* Update .mergify.yml

Co-authored-by: Trent Nelson <[email protected]>

* Update .mergify.yml

Co-authored-by: Trent Nelson <[email protected]>

---------

Co-authored-by: Trent Nelson <[email protected]>
  • Loading branch information
jstarry and t-nelson authored Nov 17, 2023
1 parent 1e9f6d9 commit 45290c4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 45290c4

Please sign in to comment.