Files
lighthouse/.github/mergify.yml
2025-05-16 13:55:06 +10:00

115 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
pull_request_rules:
- name: Ask to resolve conflict
conditions:
- -closed
- conflict
- -author=dependabot[bot]
- or:
- -draft # Don't report conflicts on regular draft.
- and: # Do report conflicts on draft that are scheduled for the next major release.
- draft
- milestone~=v[0-9]\.[0-9]{2}
actions:
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:
- -closed
- or:
- check-skipped=test-suite-success
- check-skipped=local-testnet-success
- check-failure=test-suite-success
- check-failure=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:
- -closed
- -draft
- label=waiting-on-author
- -conflict
# Unfortunately, it doesn't look like there's an easy way to check for PRs pending
# CI workflows approvals.
- check-success=test-suite-success
- check-success=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:
- -closed
- 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:
- base!=stable
- label=trivial
- author=@sigp/lighthouse
- -conflict
actions:
review:
type: APPROVE
- name: Add ready-to-merge labeled PRs to merge queue
conditions:
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
- base!=stable
- label=ready-for-merge
- label!=do-not-merge
actions:
queue:
queue_rules:
- name: default
batch_size: 8
batch_max_wait_time: 60 s
checks_timeout: 10800 s
merge_method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body | get_section("## Issue Addressed", "") }}
{{ body | get_section("## Proposed Changes", "") }}
queue_conditions:
- "#approved-reviews-by >= 1"
- "check-success=license/cla"
- "check-success=target-branch-check"
- "label!=do-not-merge"
merge_conditions:
- "check-success=test-suite-success"
- "check-success=local-testnet-success"