Skip to content

Commit cbf0a27

Browse files
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.
1 parent bffe415 commit cbf0a27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/mergify.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ pull_request_rules:
2424
actions:
2525
queue:
2626

27+
- name: Remove reviews on updates after PR is queued for merging
28+
conditions:
29+
- base=master
30+
- label=send-it
31+
- author!=@libp2p/rust-libp2p-maintainers
32+
actions:
33+
dismiss_reviews:
34+
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
35+
changes_requested: false
36+
2737
queue_rules:
2838
- name: default
2939
conditions: []

0 commit comments

Comments
 (0)