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

ci(mergify): upgrade configuration to current format #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
42 changes: 14 additions & 28 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
queue_rules:
- name: default
conditions:
# Conditions to get out of the queue (= merged)
- check-success=nventive.UnoApplicationTemplate # Replace this with your CI pipeline name

pull_request_rules:

- name: automatic strict merge when CI passes, has 2 reviews, no requests for change and is labeled 'ready-to-merge' unless labelled 'do-not-merge/breaking-change' or 'do-not-merge/work-in-progress'
conditions:
# Only pull-requests sent to the main branch
queue_conditions:
- base=main

# All Azure builds should be green:
- status-success=nventive.UnoApplicationTemplate # Replace this with your CI pipeline name

# CLA check must pass:
#- "status-success=license/cla"

# Note that this only matches people with write / admin access to the repo,
# see <https://doc.mergify.io/conditions.html#attribute-list>
- status-success=nventive.UnoApplicationTemplate
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"

# Pull-request must be labeled with:
- label=ready-to-merge

# Do not automatically merge pull-requests that are labelled as do-not-merge
# see <https://doc.mergify.io/examples.html#id6>
- label!=do-not-merge/breaking-change
- label!=do-not-merge/work-in-progress
merge_conditions:
# Conditions to get out of the queue (= merged)
- check-success=nventive.UnoApplicationTemplate # Replace this with your CI pipeline name

# Note: mergify cannot break branch protection rules
actions:
queue:
method: merge
name: default
merge_method: merge

pull_request_rules:

- name: automatic merge for allcontributors pull requests
conditions:
- author=allcontributors[bot]
actions:
merge:
method: merge
- name: automatic strict merge when CI passes, has 2 reviews, no requests for change
and is labeled 'ready-to-merge' unless labelled 'do-not-merge/breaking-change'
or 'do-not-merge/work-in-progress'
conditions: []
actions:
queue: