Add fixedMajorVersion option for multiple major version support#296
Open
Konboi wants to merge 1 commit intoSongmu:mainfrom
Open
Add fixedMajorVersion option for multiple major version support#296Konboi wants to merge 1 commit intoSongmu:mainfrom
Konboi wants to merge 1 commit intoSongmu:mainfrom
Conversation
Add `tagpr.fixedMajorVersion` configuration option that allows tagpr to
target a specific major version when creating releases. This enables
maintaining multiple major versions on different branches (e.g., v1
branch for v1.x.x releases, main branch for v2.x.x releases).
- Add `tagpr.fixedMajorVersion` config option (also via TAGPR_FIXED_MAJOR_VERSION env)
- Accept both numeric ("1") and v-prefixed ("v1") formats
- Filter tags in latestSemverTag() to only consider matching major versions
- Add tests for FixedMajorVersion()
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ba34272 to
77f1f60
Compare
Author
|
@Songmu I've fixed conflict. Could you review when you have time? |
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
Add
tagpr.fixedMajorVersionconfiguration option that allows tagpr to target a specific major version when creating releases. This enables maintaining multiple major versions on different branches.Closes #248
Use case:
Changes
tagpr.fixedMajorVersionconfig option (also viaTAGPR_FIXED_MAJOR_VERSIONenv)latestSemverTag()to only consider matching major versionsExample Usage
Or via environment variable:
Discussion Points
fixedVersionwith pattern support:fixedVersion = "1"→ fix major version (v1.x.x)fixedVersion = "1.2"→ fix major and minor version (v1.2.x)🤖 Generated with Claude Code