Skip to content

Commit

Permalink
mergify: Add auto-merge rule
Browse files Browse the repository at this point in the history
This rule will automatically merge general PRs once all merge
requirements have been met.

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Apr 19, 2024
1 parent 675e226 commit ff9fb4f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,21 @@ pull_request_rules:
actions:
merge:
method: merge

- name: auto-merge
description: automatic merge for main with > 1 approved reviews, all requested reviews have given feedback, not held, and CI is successful
conditions:
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- base=main
- label!=hold
- check-success=golangci-lint-worker
- check-success=golangci-lint-bot
- check-success=ansible
- check-success=Shellcheck
- check-success=markdown-lint
- check-success=DCO
actions:
merge:
method: merge

0 comments on commit ff9fb4f

Please sign in to comment.