Skip to content

Update Mergify configuration to remove branch deletion#379

Merged
MH0386 merged 1 commit into
cifrom
Mergify
Nov 4, 2025
Merged

Update Mergify configuration to remove branch deletion#379
MH0386 merged 1 commit into
cifrom
Mergify

Conversation

@MH0386

@MH0386 MH0386 commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Removed the action to delete branches after closing pull requests and commented out the CodeRabbit check.

Summary by Sourcery

Update Mergify configuration to disable automatic branch deletion and temporarily disable the CodeRabbit check

CI:

  • Remove the head branch deletion action after pull request closure in Mergify
  • Comment out the CodeRabbit check in Mergify queue rules

Removed the action to delete branches after closing pull requests and commented out the CodeRabbit check.
@gitnotebooks

gitnotebooks Bot commented Nov 4, 2025

Copy link
Copy Markdown

@sourcery-ai

sourcery-ai Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates the Mergify configuration to stop automatically deleting branches after pull request closure and temporarily disables the CodeRabbit check by commenting it out.

Flow diagram for Mergify branch deletion removal

flowchart TD
    A["PR Closed"] -->|Before| B["Delete Head Branch"]
    A["PR Closed"] -->|Now| C["No Branch Deletion"]
Loading

File-Level Changes

Change Details Files
Disable automatic branch deletion after pull request closure
  • Removed the “Delete branch after close” action entry
  • Removed the associated closed condition block
  • Removed the delete_head_branch action mapping
.github/mergify.yml
Disable CodeRabbit check in queue rules
  • Removed the check-success = CodeRabbit line
  • Added a comment marker to keep the entry for future reactivation
.github/mergify.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch Mergify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @MH0386, 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 refines the automated workflow managed by Mergify. It removes a rule that automatically deletes branches once a pull request is closed, providing more control over branch retention. Additionally, it temporarily disables the CodeRabbit check within the Mergify queue rules, allowing for adjustments or further evaluation of this specific check.

Highlights

  • Mergify Configuration Update: The Mergify configuration has been updated to remove the automatic deletion of branches after a pull request is closed.
  • CodeRabbit Check Disabled: The CodeRabbit check has been commented out in the Mergify configuration, effectively disabling it for now.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@MH0386 MH0386 merged commit e1cd9d3 into ci Nov 4, 2025
5 of 12 checks passed
@MH0386 MH0386 deleted the Mergify branch November 4, 2025 14:49
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2025

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Add a brief in-file comment explaining why the branch deletion rule was removed to help future maintainers understand the change.
  • Instead of commenting out the CodeRabbit check, consider removing or replacing it entirely in the queue_rules to keep the configuration clean.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Add a brief in-file comment explaining why the branch deletion rule was removed to help future maintainers understand the change.
- Instead of commenting out the CodeRabbit check, consider removing or replacing it entirely in the queue_rules to keep the configuration clean.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepsource-io

deepsource-io Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Here's the code health analysis summary for commits fad7d5b..148a23c. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource Secrets LogoSecrets✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@mergify

mergify Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Thank you for your contribution @MH0386! Your pull request has been merged.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @MH0386, 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 modifies the Mergify automation configuration to prevent the automatic deletion of feature branches once their associated pull requests are closed. Additionally, it temporarily disables the CodeRabbit status check within the Mergify queue rules, likely to address an issue or for maintenance purposes, streamlining the CI/CD process.

Highlights

  • Mergify Configuration Update: The Mergify configuration has been updated to modify its behavior regarding pull request management and checks.
  • Automatic Branch Deletion Disabled: The rule that automatically deleted head branches after a pull request was closed has been removed from the Mergify configuration.
  • CodeRabbit Check Temporarily Disabled: The CodeRabbit status check has been commented out in the Mergify queue rules, effectively disabling it from being a required check for merging.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

The pull request updates the Mergify configuration to remove automatic branch deletion after pull request closure and temporarily disables the CodeRabbit check. The changes align with the stated objective of modifying Mergify's behavior regarding branch management and CI checks.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Mergify configuration by removing the automatic branch deletion rule and temporarily disabling the CodeRabbit check. The changes are clear and align with the description. I have one suggestion to improve the maintainability of the configuration file by commenting out the CodeRabbit check in place rather than moving it.

Comment thread .github/mergify.yml
Comment on lines 80 to +83
- check-success = Trunk Check
- check-success = CodeRabbit
- check-success = Test Image / API Test
- check-success = CodeQL
# - check-success = CodeRabbit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For better readability and maintainability, it's preferable to comment out the CodeRabbit check in its original position within the list. This keeps related items together and makes it clearer where the check belongs if you decide to re-enable it in the future.

          - check-success = Trunk Check
          # - check-success = CodeRabbit
          - check-success = Test Image / API Test
          - check-success = CodeQL

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.

1 participant