Skip to content

fix: skip pre-release versions in CLI update/upgrade logic#1931

Open
danielkov wants to merge 2 commits into
mainfrom
daniel/gen-2603-bug-fix-cli-update-logic-to-skip-non-full-semver
Open

fix: skip pre-release versions in CLI update/upgrade logic#1931
danielkov wants to merge 2 commits into
mainfrom
daniel/gen-2603-bug-fix-cli-update-logic-to-skip-non-full-semver

Conversation

@danielkov
Copy link
Copy Markdown
Contributor

Summary

  • getLatestRelease() was returning the first GitHub release with a matching asset without checking if it was a draft, pre-release, or had a pre-release semver tag (e.g. v1.2.3-pre.0)
  • Added isStableRelease() helper that skips drafts, GitHub-marked pre-releases, and tags with pre-release semver components
  • This fixes both the update command and the auto-update notification in the root command

✻ Clauded...

getLatestRelease() was returning the first GitHub release with a matching
asset regardless of whether it was a draft, pre-release, or had a
pre-release semver tag (e.g. v1.2.3-pre.0). This caused the update
command and auto-update check to treat pre-releases as full releases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear Bot commented Feb 28, 2026

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danielkov danielkov enabled auto-merge (squash) February 28, 2026 00:37
@danielkov danielkov requested a review from a team February 28, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant