Add --base-ref to manually override scan base#91
Merged
RomainCscn merged 4 commits intoMay 21, 2026
Conversation
d8c47d3 to
1d500d9
Compare
There was a problem hiding this comment.
Looks good. The --base-ref escape hatch is correctly guarded (throws when a reachable baseline already exists), the inspectSingleCommit: false path properly handles baseRef == HEAD as an empty range, and the release-at-zero-commits behavior for baseline establishment is both tested and intentional. No blocking issues found.
mwolting
approved these changes
May 21, 2026
axelniklasson
approved these changes
May 21, 2026
Collaborator
axelniklasson
left a comment
There was a problem hiding this comment.
Nice! We should add this and any other missing arguments if there are any to https://github.com/linear/linear-release-action as well to ensure parity between the action and the CLI.
Collaborator
Author
|
Of course, PR incoming! |
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.
--base-refscans<ref>..HEAD, applies existing path filters, and storesHEADas the new release baseline.When provided, it skips automatic release baseline selection for that run. This covers the original first-sync use cases, where no useful prior release
commitShaexists yet, and also workflows where the desired lower bound is not a prior releasecommitSha, such as hotfix branches whose release delta should start at the fork point from an integration branch.Usage examples:
First-time monorepo onboarding:
Rewritten repo migration:
Hotfix branch delta:
linear-release sync --base-ref="$(git merge-base origin/develop HEAD)"--base-refis advanced range control: the ref must be an ancestor ofHEAD, and users intentionally own the selected range.Fixes #88.