ci(mergify): dismiss approvals on push once send-it is applied (#3231)

Currently, a user can push code after it has been approved and the send-it label applied. We only want to merge code that we actually looked at. Use mergify to dismiss approvals in such circumstances.
This commit is contained in:
Thomas Eizinger 2022-12-13 22:33:37 +11:00 committed by GitHub
parent bffe4153bc
commit cbf0a273cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
.github/mergify.yml vendored
View File

@ -24,6 +24,16 @@ pull_request_rules:
actions:
queue:
- name: Remove reviews on updates after PR is queued for merging
conditions:
- base=master
- label=send-it
- author!=@libp2p/rust-libp2p-maintainers
actions:
dismiss_reviews:
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
changes_requested: false
queue_rules:
- name: default
conditions: []