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-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: - -closed - -draft - label=waiting-on-author - -conflict # Need to be the logical opposite of the above rule `Ask to resolve CI failures`, otherwise mergify will run into an infinite loop. - check-failure!=test-suite-success - check-skipped!=test-suite-success - check-failure!=local-testnet-success - check-skipped!=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 you’d 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"