Skip to content

Commit

Permalink
mergify: update rules (#6706)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 7, 2025
1 parent c82d568 commit de2b544
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ queue_rules:
- name: default
merge_method: squash
conditions:
- check-success=fleet-ci/pr-merge
- check-success=buildkite/elastic-agent
- check-success=CLA
pull_request_rules:
- name: self-assign PRs
conditions:
Expand Down Expand Up @@ -48,7 +49,6 @@ pull_request_rules:
- -merged
- -closed
- conflict
- author=apmmachine
- label=automation
actions:
close:
Expand All @@ -61,16 +61,14 @@ pull_request_rules:
- merged
- closed
- and:
- label=automation
- head~=^update-go-version
- head~=^updatecli.*
- files~=^\.go-version$
actions:
delete_head_branch:
- name: automatic approval for mergify pull requests with changes in bump-rules
conditions:
- author=mergify[bot]
- check-success=fleet-ci/pr-merge
- label=automation
- check-success=buildkite/elastic-agent
- files~=^\.mergify\.yml$
- head~=^add-backport-next.*
actions:
Expand All @@ -79,21 +77,28 @@ pull_request_rules:
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=fleet-ci/pr-merge
- label=automation
- check-success=buildkite/elastic-agent
- files~=^\.mergify\.yml$
- head~=^add-backport-next.*
- "#approved-reviews-by>=1"
actions:
queue:
name: default
- name: delete upstream branch for mergify backports
conditions:
- or:
- merged
- closed
- and:
- head~=^mergify/bp/.*
actions:
delete_head_branch:
- 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:
Expand Down

0 comments on commit de2b544

Please sign in to comment.