Repository navigation
ci(mergify): remove the delete_head_branch action - #316
mergify[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Reviewer's GuideConfigurationRemove Mergify’s
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Tick the box to add this pull request to the merge queue (same as
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/mergify.yml" line_range="78" />
<code_context>
actions:
merge:
method: merge
- delete_head_branch:
- name: label-cicd
</code_context>
<issue_to_address>
**Merged branches accumulate**
When gitHub’s “Automatically delete head branches” setting is disabled, the removed `delete_head_branch` action no longer deletes merged head branches, so GitHub leaves them behind for manual cleanup.
Restore the `delete_head_branch` action.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 1 finding to address first, and merged head branches will remain instead of being deleted automatically. Reverting restores the automation for future merges, but branches left behind would need to be cleaned up separately.
Blocking findings: .github/mergify.yml:78
| actions: | ||
| merge: | ||
| method: merge | ||
| delete_head_branch: |
There was a problem hiding this comment.
🟡 Medium · Merged branches accumulate
When gitHub’s “Automatically delete head branches” setting is disabled, the removed delete_head_branch action no longer deletes merged head branches, so GitHub leaves them behind for manual cleanup.
Restore the delete_head_branch action.
Prompt for AI agents
In `.github/mergify.yml` at line 78:
**Merged branches accumulate**
When gitHub’s “Automatically delete head branches” setting is disabled, the removed `delete_head_branch` action no longer deletes merged head branches, so GitHub leaves them behind for manual cleanup.
Restore the `delete_head_branch` action.
Your
.github/mergify.ymluses syntax that Mergify is retiring. This pull request updates it for you: Remove thedelete_head_branchaction.Why now: the old syntax is past its end date, 2026-07-31. Mergify still accepts it for now.
Is it safe to merge?
🟠 Yes, once you know what changes, hence the
behavior-changelabel. Mergify stops deleting a pull request's branch once it merges. GitHub's Automatically delete head branches setting does the same job, but a pull request closed without merging keeps its branch.Before you merge: turn on Automatically delete head branches under Settings → General → Pull Requests, if it isn't on already.
More about this pull request