Add additional mergify rules to automate triaging (#7451)

* Add additional mergify rules to automate triaging.

* Update mergify config.
This commit is contained in:
Jimmy Chen
2025-05-15 15:54:24 +10:00
committed by GitHub
parent e42406d7b7
commit b1138c28fb

52
.github/mergify.yml vendored
View File

@@ -12,6 +12,58 @@ pull_request_rules:
comment:
message: This pull request has merge conflicts. Could you please resolve them
@{{author}}? 🙏
label:
add:
- waiting-on-author
remove:
- ready-for-review
- name: Ask to resolve CI failures
conditions:
- or:
- check-failure=test-suite-success
- check-skipped=test-suite-success
- check-failure=local-testnet-success
- check-skipped=local-testnet-success
actions:
comment:
message: Some required checks have failed. Could you please take a look @{{author}}? 🙏
label:
add:
- waiting-on-author
remove:
- ready-for-review
- name: Update labels when PR is unblocked
conditions:
- label=waiting-on-author
- -conflict
- check-failure!=test-suite-success
- check-failure!=local-testnet-success
- "#review-requested > 0"
actions:
label:
remove:
- waiting-on-author
add:
- ready-for-review
comment:
message: >
All required checks have passed and there are no merge conflicts.
This pull request may now be ready for another review.
- name: Close stale pull request after 30 days of inactivity
conditions:
- label=waiting-on-author
- updated-at<=30 days ago
actions:
close:
message: >
Hi @{{author}}, this pull request has been closed automatically due to 30 days of inactivity.
If youd like to continue working on it, feel free to reopen at any time.
label:
add:
- stale
- name: Approve trivial maintainer PRs
conditions: