Repository navigation
ci(mergify): enable auto-close for non-conforming branch names - #454
Conversation
Summary of ChangesHello @CatherineSue, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request reactivates the automated enforcement of branch naming conventions within the repository's Mergify configuration. By re-enabling the auto-close feature and updating the associated warning message, the change ensures that all new pull requests adhere to the defined naming standards, thereby maintaining consistency and clarity in the development workflow. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughModified Changes
Sequence Diagram(s)(omitted — change is a configuration update, not a multi-component flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
The provided code review comments suggest enforcing a specific branch naming convention (/ or /). However, this contradicts the established rule that the branch naming convention should be permissive, allowing any prefix before the slash. Therefore, both comments have been dropped as they do not align with the repository's guidelines.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/mergify.yml:
- Around line 23-25: Update the closing message under the close rule (the
close.message block) to clearly instruct the user to rename their local branch,
push the renamed branch to the remote, and open a new PR (since a closed PR
cannot be reopened after the source branch is renamed); replace the current
"rename your branch and reopen" phrasing with explicit steps: rename locally,
push the new branch, and create a new pull request so users are not confused
about reopening.
Re-enable the auto-close action that was temporarily disabled during the grace period for existing PRs. Update the comment message to reflect that enforcement is now active. Signed-off-by: Chang Su <chang.s.su@oracle.com>
96d738f to
9468dd7
Compare
Description
Problem
The Mergify auto-close action for PRs with non-conforming branch names was temporarily disabled to give a grace period for existing PRs to be merged.
Solution
Re-enable the auto-close action now that the grace period is over, and update the comment message to reflect that enforcement is active.
Changes
closeaction in the branch naming convention ruleTODOcomment about re-enablingTest Plan
Checklist
cargo +nightly fmtpassescargo clippy --all-targets --all-features -- -D warningspassesSummary by CodeRabbit