arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Delete old preview branches if corresponding public preview branch is deleted

Open epananth opened this issue 9 months ago • 2 comments

  • [ ] This issue is blocking
  • [ ] This issue is causing unreasonable pain

Automation request - When mirror detects that a public preview branch has been deleted, it should delete the corresponding internal branch.

FR convo

epananth avatar Mar 10 '25 17:03 epananth

This would be helpful for repos that have scheduled jobs w/ release/* as a branch trigger - since devs can't delete internal release branches, those pipelines are doing a bunch of pointless work on stale preview branches. e.g:

Image

wtgodbe avatar Mar 10 '25 18:03 wtgodbe

Yep agreed this would be good. This would be:

  • If a fast-forward merge and
  • The public branch does not exist for a corresponding internal branch
  • Delete the internal branch

We might want to initially add more checking..only delete if the head SHA of the branch is tagged.

mmitche avatar Mar 14 '25 15:03 mmitche