feat(release): add create-release-branch target#4587
Open
radTuti wants to merge 2 commits intotigera:masterfrom
Open
feat(release): add create-release-branch target#4587radTuti wants to merge 2 commits intotigera:masterfrom
radTuti wants to merge 2 commits intotigera:masterfrom
Conversation
6009212 to
bcd4ff3
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new release branch subcommand (and make create-release-branch target) to automate release-branch creation, while refactoring release prep to reuse the shared branch/config/commit logic.
Changes:
- Add
release branchcommand to create a release branch, update version configs, commit, tag, and optionally push. - Refactor
release prepto share common branch creation + config update logic via shared helpers. - Add new flags (
--stream,--calico-ref,--enterprise-ref) and update release documentation.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
hack/release/branch.go |
New command + shared helpers for branching/config updates/commit/tag/push. |
hack/release/prep.go |
Refactors prep to reuse shared branch/config/commit logic and uses shared cleanup. |
hack/release/main.go |
Registers the new branch command with the CLI. |
hack/release/flags.go |
Adds new flags for stream and component refs/prefix. |
hack/release/checks.go |
Adds shared validation helpers for prep/branch. |
hack/release/README.md |
Documents the new release branch command and Makefile target. |
RELEASING.md |
Updates the release-branch preparation process docs to point at the new automation. |
Makefile |
Adds create-release-branch target. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bcd4ff3 to
2b1aeaa
Compare
2b1aeaa to
562ab74
Compare
danudey
approved these changes
Mar 24, 2026
Enhance validateBranchRefs to check that the operator branch doesn't already exist in the remote and that calico/enterprise refs exist as branches or tags. Similarly enhance validatePrepRefs to verify version tags exist in their respective remote repositories. Move validation logic from prepBefore into validatePrepRefs for consistency.
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.
Summary
release branchCLI command for automated release branch creationcreate-release-branchMakefile targetprepcommand to share branch creation logic withbranchviabranchBeforeCommonandbranchActionCommonUsage
Or directly:
Use
--localto skip pushing to remote.