Skip to content

set up automatic approval rules for mergify #88

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

Merged
merged 3 commits into from
Dec 21, 2023
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
24 changes: 23 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ pull_request_rules:
add:
- documentation

- name: automatic approval for Dependabot pull requests
conditions:
- author=dependabot[bot]
actions:
review:
type: APPROVE
message: Automatically approving dependabot

- name: Add breaking-change label
# https://docs.openstack.org/pbr/latest/user/features.html
conditions:
Expand All @@ -52,6 +60,17 @@ pull_request_rules:
add:
- feature

- name: Add automatic-merge label
conditions:
- or:
- "author=dhellmann"
- "author=jasonamyers"
- "label!=mergify"
actions:
label:
add:
- automatic-merge

- name: Automatic merge on approval
conditions:
- and:
Expand All @@ -69,7 +88,10 @@ pull_request_rules:
- "check-success=Test Ubuntu (3.12)"
- "check-success=Test Zsh"
- "-draft"
- "#approved-reviews-by>=1"
- or:
- "#approved-reviews-by>=1"
- "author=dhellmann"
- "author=jasonamyers"
actions:
merge:
method: merge