Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new features to mergify config #6597

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
pull_request_rules:
- name: Ask to resolve conflict
conditions:
- 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}}? 🙏

- name: Approve trivial maintainer PRs
conditions:
- base=master
jxs marked this conversation as resolved.
Show resolved Hide resolved
- label=trivial
- author=@sigp/lighthouse
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created this team.

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=master
jxs marked this conversation as resolved.
Show resolved Hide resolved
- label=send-it
jxs marked this conversation as resolved.
Show resolved Hide resolved
actions:
queue:


queue_rules:
- name: default
batch_size: 8
Expand All @@ -6,10 +39,11 @@ queue_rules:
merge_method: squash
commit_message_template: |
{{ title }} (#{{ number }})

{% for commit in commits %}
* {{ commit.commit_message }}
{% endfor %}

{{ body | get_section("## Issue Addressed", "") }}


{{ body | get_section("## Proposed Changes", "") }}
queue_conditions:
- "#approved-reviews-by >= 1"
- "check-success=license/cla"
Expand Down
Loading