diff --git a/mergify.yml b/mergify.yml new file mode 100644 index 00000000..322c16d1 --- /dev/null +++ b/mergify.yml @@ -0,0 +1,36 @@ +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 master branch + - base=master + + # All Azure builds should be green: + - status-success=Uno.UI - CI + + # CLA check must pass: + #- "status-success=license/cla" + + # Note that this only matches people with write / admin access to the repo, + # see + - "#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 + - label!=do-not-merge/breaking-change + - label!=do-not-merge/work-in-progress + + # Note: mergify cannot break branch protection rules + actions: + merge: + method: merge + + - name: automatic merge for allcontributors pull requests + conditions: + - author=allcontributors[bot] + actions: + merge: + method: merge \ No newline at end of file