Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardise mergify config #110

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
---
pull_request_rules:
- name: Automatically merge security pull requests
- name: Auto-squash dependabot updates when checks pass
conditions:
- author=dependabot[bot]
- label!=wontfix
- check-success=🔨 Build
- check-success=🧪 Test
- check-success=👩‍🎤 Playwright Tests
- check-success=🧹 Lint
- check-success=SonarCloud Code Analysis
actions:
review:
type: APPROVE
message: Automatically approving dependabot
merge:
method: merge
- name: Automatically merge when all checks pass and the PR has been approved
method: squash
- name: Auto-squash when all checks pass and the PR has been approved
conditions:
- check-success=🔨 Build
- check-success=🧪 Test
- check-success=🧹 Lint
- check-success=SonarCloud Code Analysis
- "#review-requested=0"
- "#approved-reviews-by>=1"
actions:
merge:
method: merge
method: squash
- name: Ask for reviews
conditions:
- -closed
Expand All @@ -35,4 +26,10 @@ pull_request_rules:
request_reviews:
teams:
- devs
random_count: 1
- name: Assign PR to its author
conditions:
- "#files=1"
actions:
assign:
add_users:
- "{{author}}"