Skip to content

Conversation

@Piotr1215
Copy link
Contributor

@Piotr1215 Piotr1215 commented Nov 13, 2025

Note

Adds a GitHub Actions workflow to auto-delete merged backport branches immediately on merge and via a weekly/manual cleanup with optional dry-run.

  • CI/GitHub Actions:
    • New workflow /.github/workflows/cleanup-backport-branches.yaml with contents: write.
      • Triggers: pull_request (closed), weekly schedule (Sun 02:00 UTC), and workflow_dispatch with dry_run option.
      • Delete-on-merge job: removes backport/* branch on merged PR using jessfraz/branch-cleanup-action@master.
      • Scheduled/manual cleanup job:
        • Checks out repo and identifies origin default branch.
        • Finds backport/* branches merged into main and older than 7 days via git history.
        • Deletes branches (or logs in dry-run) and prints summary.
        • Uses GH_ACCESS_TOKEN for auth.

Written by Cursor Bugbot for commit 5bfc581. This will update automatically on new commits. Configure here.

References OPS-373

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@Piotr1215 Piotr1215 force-pushed the ops-373/backport-cleanup branch 2 times, most recently from 61907b7 to e093ef2 Compare November 13, 2025 09:58
@Piotr1215 Piotr1215 force-pushed the ops-373/backport-cleanup branch from e093ef2 to 5bfc581 Compare November 13, 2025 10:04
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