ci(release): auto-delete superseded krateoctl-* CRD-sync branches - #89
Open
braghettos wants to merge 1 commit into
Open
ci(release): auto-delete superseded krateoctl-* CRD-sync branches#89braghettos wants to merge 1 commit into
braghettos wants to merge 1 commit into
Conversation
…branches The CRD-sync step opens one krateoctl-<tag> PR per release but never cleaned up older ones, so closed/merged PRs left their head branches behind (71 accumulated). After ensuring the current PR is open, close every OTHER open krateoctl-* PR with --delete-branch — each PR is a full CRD snapshot, so the newest subsumes the rest. Pairs with enabling delete_branch_on_merge on krateo-frontend-chart (covers the merge path); this step covers supersession. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The widget-CRD auto-sync step in
release-tag.yamlopens onekrateoctl-<tag>PR againstkrateo-frontend-chartper frontend release, but never cleaned up the previous ones. Result: 71 stalekrateoctl-*branches accumulated on the chart repo (from #1–#112; 15 merged, 62 closed-unmerged, 0 open). No schema was ever lost — each PR is a full CRD snapshot, so the latest merged one (krateoctl-1.3.119, #112) subsumes all the intermediates — but the branches piled up.Change
After the step ensures the current release's PR is open, it now closes every other open
krateoctl-*PR with--delete-branch(supersession). Only the newest CRD-sync PR stays open; superseded ones close and their branches are deleted automatically.|| trueso cleanup never fails the release.Also recommended (one-click, not in this PR)
Enable Settings → General → "Automatically delete head branches" (
delete_branch_on_merge: true) onbraghettos/krateo-frontend-chart. That covers the merge path; this PR covers the supersession path. Together they stop the pileup for good.The 71 existing stale branches have already been deleted manually.
🤖 Generated with Claude Code