chore: Update the mergify configuration
This includes auto approval for dfinity-bot PRs, and using the PR body
as the commit message (before was all commit messages).
pull_request_rules:
- - name: Automatic merge
- conditions:
- - "#approved-reviews-by>=1"
- - "#changes-requested-reviews-by=0"
- - status-success=hydra:dfinity-ci-build:sdk:all-jobs
- - base=master
- - label=automerge
- actions:
- merge:
- method: merge
- strict: smart
- delete_head_branch: {}
- name: Automatic merge (squash)
conditions:
- "#approved-reviews-by>=1"
@@ -22,19 +10,7 @@ pull_request_rules:
merge:
method: squash
strict: smart
- delete_head_branch: {}
- - name: Automatic merge (Rebase)
- conditions:
- - "#approved-reviews-by>=1"
- - "#changes-requested-reviews-by=0"
- - status-success=hydra:dfinity-ci-build:sdk:all-jobs
- - base=master
- - label=automerge-rebase
- actions:
- merge:
- method: rebase
- strict: smart
- strict_method: rebase
+ commit_message: title+body
delete_head_branch: {}
- name: Clean up automerge tags
conditions:
@@ -42,6 +18,11 @@ pull_request_rules:
actions:
label:
remove:
- - automerge
- automerge-squash
- - automerge-rebase
+ - name: Auto-approve auto-PRs
+ conditions:
+ - author=dfinity-bot
+ actions:
+ review:
+ type: APPROVE
+ message: This bot trusts that bot
