Skip to content

Commit

Permalink
Merge pull request #81 from etchteam/feature/etch-813-fix-mergify-config
Browse files Browse the repository at this point in the history
Standardise mergify config
  • Loading branch information
mergify[bot] authored Sep 26, 2024
2 parents bfcdf79 + 4c81ff8 commit 5b48d05
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,35 @@
---
pull_request_rules:
- name: Auto-squash dependabot updates when checks pass
- name: Auto-merge dependabot updates when checks pass
conditions:
- and:
- author~=^dependabot(|-preview)\[bot\]$
- label!=wontfix
- check-success=SonarCloud Code Analysis
- check-success=build
- check-success=lint
- author=dependabot[bot]
- label!=wontfix
actions:
review:
type: APPROVE
message: Automatically approving dependabot
merge:
method: merge
- name: Auto-squash when all checks pass and the PR has been approved
- name: Auto-merge when all checks pass and the PR has been approved
conditions:
- and:
- check-success=SonarCloud Code Analysis
- check-success=build
- check-success=lint
- "#review-requested=0"
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#approved-reviews-by>=1"
actions:
merge:
method: merge
- name: Ask an old fart to review the code
- name: Ask for reviews
conditions:
- -closed
- -draft
- author~=!^dependabot(|-preview)\[bot\]$
- -author=dependabot[bot]
actions:
request_reviews:
users:
- JoshTheWanderer
- DanWebb
- gavmck
random_count: 1
- name: Get some more eyes on it
teams:
- devs
- name: Assign PR to its author
conditions:
- -closed
- -draft
- author~=!^dependabot(|-preview)\[bot\]$
- "#files=1"
actions:
request_reviews:
users:
- ella-etch
- Carl-J-M
random_count: 1
assign:
add_users:
- "{{author}}"

0 comments on commit 5b48d05

Please sign in to comment.