From cbf0a273cdab7397c636a57d835f33269b9461d8 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 13 Dec 2022 22:33:37 +1100 Subject: [PATCH] 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. --- .github/mergify.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index de29495a..772a5d34 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -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: []