Skip to content

Add the closed event to the merge-bot caller trigger - #184

Merged
ptr727 merged 1 commit into
developfrom
feature/merge-bot-closed-event
Oct 12, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/merge-bot-closed-event

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Summary

The merge-bot caller triggered on pull_request_target types opened, reopened, and synchronize only. The hub's reusable merge-bot-task.yml runs its delete-merged-bot-branch job only on a closed event, so the caller's own advice to set delete-branch: true would have deleted nothing.

This adds closed to the trigger types, matching the hub caller stub catalog/snippets/workflows/merge-bot-pull-request.yml at the pinned commit.

Behavior with delete-branch unset

Checked against merge-bot-task.yml at the caller's pin. With delete-branch at its default of false, a closed event skips every job:

  • merge-dependabot and merge-app require opened or reopened.
  • disable-auto-merge-on-maintainer-push requires synchronize.
  • delete-merged-bot-branch requires inputs.delete-branch first, then closed and 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

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]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 19:02
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 70e91371-bcdc-4e5d-b627-b0b34f7f9d8a

📥 Commits

Reviewing files that changed from the base of the PR and between 67bf485 and 52583d9.


📒 Files selected for processing (1)
  • .github/workflows/merge-bot-pull-request.yml

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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 closed to the pull_request_target trigger 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.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 26107c6 into develop Oct 12, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/merge-bot-closed-event branch October 12, 2026 19:07
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.

2 participants