Skip to content

Commit

Permalink
[mergify] automate PRs that change the backport rules (#26641)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jul 1, 2021
1 parent 3d01b5b commit 3117189
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pull_request_rules:
- and:
- label=automation
- head~=^update-go-version
- files~=^.go-version$
- files~=^\.go-version$
actions:
delete_head_branch:
- name: backport patches to 7.14 branch
Expand All @@ -119,3 +119,35 @@ pull_request_rules:
- "7.14"
labels:
- "backport"
- name: automatic approval for mergify pull requests with changes in bump-rules
conditions:
- author=mergify[bot]
- check-success=beats-ci/pr-merge
- label=automation
- files~=^\.mergify\.yml$
- head~=^add-backport-next.*
actions:
review:
type: APPROVE
message: Automatically approving mergify
- name: automatic squash and merge with success checks and the files matching the regex ^.mergify.yml is modified.
conditions:
- check-success=beats-ci/pr-merge
- label=automation
- files~=^\.mergify\.yml$
- head~=^add-backport-next.*
actions:
merge:
method: squash
strict: smart+fasttrack
- name: delete upstream branch with changes on ^.mergify.yml that has been merged or closed
conditions:
- or:
- merged
- closed
- and:
- label=automation
- head~=^add-backport-next.*
- files~=^\.mergify\.yml$
actions:
delete_head_branch:

0 comments on commit 3117189

Please sign in to comment.