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

ci(mergify): upgrade configuration to current format #686

Merged
merged 5 commits into from
Jan 7, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 26, 2024

No more deprecated fields are being used in your Mergify configuration, this pull request will be closed.

@mergify mergify bot force-pushed the mergify/configuration-deprecated-update branch from c0c66d6 to 904376c Compare November 26, 2024 13:22
@mergify mergify bot force-pushed the mergify/configuration-deprecated-update branch from 904376c to a27c3db Compare November 28, 2024 08:36
Copy link
Contributor

@dani-chmb dani-chmb left a 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:
Copy link
Contributor

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:
Copy link
Contributor

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:
Copy link
Contributor

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:
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

This step seems incomplete?

@karanbokil
Copy link

LGTM

@omkhegde omkhegde merged commit 16f052e into master Jan 7, 2025
7 checks passed
@omkhegde omkhegde deleted the mergify/configuration-deprecated-update branch January 7, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants