Repository navigation
Add the closed event to the merge-bot caller trigger - #184
Conversation
The hub merge-bot task runs its delete-merged-bot-branch job only on a closed event, so the caller's advice to set delete-branch true deleted nothing while the trigger omitted closed. Adding closed matches the hub caller stub. With delete-branch unset every job in the task skips on a closed event, so behavior today is unchanged. 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 59 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
No unresolved review issues were identified.
0 open findings
What changed in this PR
Adds the closed event to the merge-bot caller, enabling optional cleanup of merged bot branches.
Changes:
- Adds
closedto thepull_request_targettrigger types. - Preserves existing workflow configuration.
| File | Description |
|---|---|
.github/workflows/merge-bot-pull-request.yml |
Enables closed pull-request events for merge-bot cleanup. |
🧠 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 triggered on
pull_request_targettypesopened,reopened, andsynchronizeonly. The hub's reusablemerge-bot-task.ymlruns itsdelete-merged-bot-branchjob only on aclosedevent, so the caller's own advice to setdelete-branch: truewould have deleted nothing.This adds
closedto the trigger types, matching the hub caller stubcatalog/snippets/workflows/merge-bot-pull-request.ymlat the pinned commit.Behavior with
delete-branchunsetChecked against
merge-bot-task.ymlat the caller's pin. Withdelete-branchat its default offalse, aclosedevent skips every job:merge-dependabotandmerge-apprequireopenedorreopened.disable-auto-merge-on-maintainer-pushrequiressynchronize.delete-merged-bot-branchrequiresinputs.delete-branchfirst, thenclosedand a merged PR.So behavior today is unchanged apart from one all-skipped run per closed pull request. A local strict review pass raised no findings.
Closes on promotion: #179
🤖 Generated with Claude Code