Repository navigation
Opt the merge-bot caller into delete-branch - #187
Conversation
The repository-wide head-branch auto-delete stays off because a promotion pull request head is develop, so merged Dependabot and App heads were never deleted. Set delete-branch true in a with: block on the merge-bot job, matching the hub stub shape, so the pinned task deletes a merged bot head on the closed event. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
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. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The small caller change matches the reusable workflow contract, with no unresolved findings.
0 open findings
What changed in this PR
This PR enables cleanup of merged bot branches in PhotoCleaner’s merge-bot workflow while leaving repository-wide automatic branch deletion off.
Changes:
- Passes
delete-branch: trueto the pinned reusable workflow.
| File | Description |
|---|---|
.github/workflows/merge-bot-pull-request.yml |
Enables the reusable workflow’s branch-deletion input. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@coderabbitai review |
|
Summary
The merge-bot caller delivers the
closedevent but passed nowith:block, so the hub task'sdelete-branchinput stayed at its defaultfalseand thedelete-merged-bot-branchjob skipped on every run. The repository-wide head-branch auto-delete stays off on purpose, since a promotion pull request's head isdevelop, so merged Dependabot and App heads were never deleted.This adds a
with:block carryingdelete-branch: trueto themerge-botjob, matching the hub stub's documented shape indocs/reusable-workflows.md. The two existing comment lines above it are unchanged.Safety of the delete job at the current pin
The
delete-merged-bot-branchjob inmerge-bot-task.ymlat the pinned commit runs only when all of these hold:delete-branchis true and the event isclosedwithmerged == truemainnordevelopdependabot[bot]or the App loginThe delete itself is a lease-guarded push against the merged head SHA, so a branch that moved or was recreated after the merge survives. A human-authored branch,
develop, andmainare never deleted.Closes on promotion: #186
🤖 Generated with Claude Code