-
Notifications
You must be signed in to change notification settings - Fork 243
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
ci(mergify): upgrade configuration to current format #686
Conversation
c0c66d6
to
904376c
Compare
904376c
to
a27c3db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code in this PR duplicates some logic unnecessarily, and is generally hard to read.
From the PR description, the deprecated object is pull_request_rules → actions → queue → method
, which is present in the old file at lines 26, 44. To migrate to merge_method
, we should likely be fine with removing these lines and then adding a single line in queue_rules
:
merge_method: squash
We might also need to rename queue_rules->conditions
to queue_rules->merge_conditions
.
.mergify.yml
Outdated
- name: Automatically merge on CI success and review approval | ||
conditions: | ||
- name: duplicated default from Automatically merge on CI success and review approval | ||
queue_conditions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
queue_rules->queue_conditions
logic is duplicated from thepull_request_rules -> conditions
for the condition named "for "Automatically merge on CI success and review approval"
queue: | ||
method: squash | ||
name: default | ||
merge_conditions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
queue_rules->merge_conditions
replaces the oldqueue_rules
"default" conditions
logic
.mergify.yml
Outdated
- status-success=Analyze (javascript) | ||
merge_method: squash | ||
- name: duplicated default from Automatically approve and merge Dependabot PRs | ||
queue_conditions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, duplicated from pull_request_rules -> conditions
for the condition named "Automatically approve and merge Dependabot PRs"
.mergify.yml
Outdated
- -label~=(blocked|do-not-merge) | ||
- -merged | ||
- -closed | ||
merge_conditions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated merge_conditions
.mergify.yml
Outdated
@@ -40,6 +58,8 @@ pull_request_rules: | |||
actions: | |||
review: | |||
type: APPROVE | |||
- name: Automatically approve and merge Dependabot PRs + Automatically merge on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step seems incomplete?
LGTM |
No more deprecated fields are being used in your Mergify configuration, this pull request will be closed.