Skip to content

chore: add workflow to auto-delete branches on PR merge + bulk cleanup#1041

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/clean-up-merged-pr-branches
Closed

chore: add workflow to auto-delete branches on PR merge + bulk cleanup#1041
Copilot wants to merge 2 commits intomainfrom
copilot/clean-up-merged-pr-branches

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 12, 2026

Summary

Adds .github/workflows/cleanup-branches.yml with two jobs:

  1. Auto-delete on merge (pull_request: closed): Automatically deletes the head branch whenever a PR is merged. Protected branches (main, develop, master) are never deleted.

  2. Bulk cleanup (workflow_dispatch): A manual trigger that paginates through all closed/merged PRs, finds branches that still exist, and deletes them.

How to clean up existing stale branches

After merging this PR:

  1. Go to Actions → Cleanup Merged PR Branches
  2. Click Run workflowRun workflow

This will delete the ~15 branches that belong to already-merged PRs:

  • 405-kth-largest-m-tuple, 505-scheduling-min-weighted-completion, 515-register-sufficiency
  • 530-feasible-basis-extension, 543-quadratic-diophantine-equations, 552-integer-expression-membership
  • 787-upgrade-good-lp-add-lp-solvers, feat/770-tier1a-tier1b-medium-batch
  • feat/batch-10-rules-770, feat/batch-models, feat/decision-wrapper
  • feat/find-solver-find-problem-skills, feat/verify-reduction-skill
  • fix/789-hc-stackercrane-connector-cost, fix/974-example-db-paper-entries

Copilot AI requested a review from GiggleLiu April 12, 2026 00:42
@GiggleLiu GiggleLiu closed this Apr 12, 2026
@GiggleLiu GiggleLiu deleted the copilot/clean-up-merged-pr-branches branch April 12, 2026 00:47
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