ci(mergify): upgrade configuration to current format#314
Open
mergify[bot] wants to merge 1 commit intomainfrom
Open
ci(mergify): upgrade configuration to current format#314mergify[bot] wants to merge 1 commit intomainfrom
mergify[bot] wants to merge 1 commit intomainfrom
Conversation
Reviewer's GuideUpdates the Mergify configuration to the current list-based pull_request_rules format and removes the deprecated delete_head_branch action, preserving existing rule semantics and labels while restructuring YAML nesting/indentation. Flow diagram for Mergify pull_request_rules evaluation after migration to list formatflowchart TD
start(["PR_updated (status_checks/reviews/files)"])
load["Load pull_request_rules (YAML list)"]
rule_auto_merge{Auto-merge conditions satisfied?}
rule_label_cicd{CI/CD related files changed?}
rule_label_docs{Top-level .md files changed?}
rule_label_testing{Tests_or_tox_changed?}
rule_needs_rebase_add{Conflict_and_not_closed?}
rule_needs_rebase_remove{No_conflict_and_not_closed?}
rule_release_branch{Base_branch_matches_release-?}
rule_ci_failure_add{Any_check_failure > 0?}
rule_ci_failure_remove{Any_check_failure = 0?}
rule_one_approval_add{Approved_reviews_by = 1?}
rule_one_approval_remove{Approved_reviews_by != 1?}
rule_dependencies{requirements_files_changed?}
action_merge["Action: merge (method=merge)"]
action_label_cicd["Action: add label CI/CD"]
action_label_docs["Action: add label documentation"]
action_label_testing["Action: add label testing"]
action_label_needs_rebase_add["Action: add label needs-rebase and comment"]
action_label_needs_rebase_remove["Action: remove label needs-rebase"]
action_label_release_branch["Action: add label release-branch"]
action_label_ci_failure_add["Action: add label ci-failure"]
action_label_ci_failure_remove["Action: remove label ci-failure"]
action_label_one_approval_add["Action: add label one-approval"]
action_label_one_approval_remove["Action: remove label one-approval"]
action_label_dependencies["Action: add label dependencies"]
end_state(["PR state updated in GitHub"])
start --> load
load --> rule_auto_merge
rule_auto_merge -- Yes --> action_merge
rule_auto_merge -- No --> rule_label_cicd
rule_label_cicd -- Yes --> action_label_cicd
rule_label_cicd -- No --> rule_label_docs
rule_label_docs -- Yes --> action_label_docs
rule_label_docs -- No --> rule_label_testing
rule_label_testing -- Yes --> action_label_testing
rule_label_testing -- No --> rule_needs_rebase_add
rule_needs_rebase_add -- Yes --> action_label_needs_rebase_add
rule_needs_rebase_add -- No --> rule_needs_rebase_remove
rule_needs_rebase_remove -- Yes --> action_label_needs_rebase_remove
rule_needs_rebase_remove -- No --> rule_release_branch
rule_release_branch -- Yes --> action_label_release_branch
rule_release_branch -- No --> rule_ci_failure_add
rule_ci_failure_add -- Yes --> action_label_ci_failure_add
rule_ci_failure_add -- No --> rule_ci_failure_remove
rule_ci_failure_remove -- Yes --> action_label_ci_failure_remove
rule_ci_failure_remove -- No --> rule_one_approval_add
rule_one_approval_add -- Yes --> action_label_one_approval_add
rule_one_approval_add -- No --> rule_one_approval_remove
rule_one_approval_remove -- Yes --> action_label_one_approval_remove
rule_one_approval_remove -- No --> rule_dependencies
rule_dependencies -- Yes --> action_label_dependencies
rule_dependencies -- No --> end_state
action_merge --> end_state
action_label_cicd --> end_state
action_label_docs --> end_state
action_label_testing --> end_state
action_label_needs_rebase_add --> end_state
action_label_needs_rebase_remove --> end_state
action_label_release_branch --> end_state
action_label_ci_failure_add --> end_state
action_label_ci_failure_remove --> end_state
action_label_one_approval_add --> end_state
action_label_one_approval_remove --> end_state
action_label_dependencies --> end_state
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
4153711 to
dede688
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey there! 👋
We've noticed that your Mergify configuration is using some deprecated fields.
No worries—we've got your back! This automated PR updates your config to align with the newest standards, ensuring everything keeps running smoothly.
Do not procrastinate! You must upgrade your configuration before 2026-07-31, otherwise your configuration will stop working.
What's Changed?
pull_request_rules → actions → delete_head_branch: Thedelete_head_branchaction is deprecated. Use GitHub's native 'Automatically delete head branches' setting instead: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-the-automatic-deletion-of-branches (deadline: 2026-07-31)Why This Matters
Keeping your configuration up-to-date means you'll benefit from the latest features and improvements Mergify has to offer. Plus, it helps prevent any unexpected hiccups down the road.
Got Questions? We've Got Answers! 🙌
Is this update safe to merge?
Absolutely! We've made sure the changes are compatible with your current setup. Your workflows should continue to work just as before—if not better!
Do I need to do anything special after merging?
Nope! Just merge this PR, and you're all set. If you have any custom configurations, it's a good idea to give them a quick look to ensure everything's in order.
What if I run into issues or have concerns?
We're here to help! Feel free to reach out to our support team anytime.
Thanks for being awesome and keeping your configuration up-to-date! If you have any thoughts or need a hand, don't hesitate to let us know.
Happy merging! 🎉