Skip to content

Opt the merge-bot caller into delete-branch - #187

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

ptr727 merged 1 commit into
developfrom
feature/merge-bot-delete-branch

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Summary

The merge-bot caller delivers the closed event but passed no with: block, so the hub task's delete-branch input stayed at its default false and the delete-merged-bot-branch job skipped on every run. The repository-wide head-branch auto-delete stays off on purpose, since a promotion pull request's head is develop, so merged Dependabot and App heads were never deleted.

This adds a with: block carrying delete-branch: true to the merge-bot job, matching the hub stub's documented shape in docs/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-branch job in merge-bot-task.yml at the pinned commit runs only when all of these hold:

  • delete-branch is true and the event is closed with merged == true
  • the head ref is neither main nor develop
  • the head lives in this repository, not a fork
  • the pull request author is dependabot[bot] or the App login

The 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, and main are never deleted.

Closes on promotion: #186

🤖 Generated with Claude Code

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]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 19:23
@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 37 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: 16efb97e-88b0-4f2b-809a-85194a193e1b

📥 Commits

Reviewing files that changed from the base of the PR and between 36b6356 and 4b7600c.


📒 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

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: true to 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.

@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 b4b7369 into develop Oct 12, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/merge-bot-delete-branch branch October 12, 2026 19:27
@ptr727 ptr727 mentioned this pull request Oct 12, 2026
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