Skip to content

Fix: Report no previous tag on a first release - #150

Merged
rafaeljusto merged 1 commit into
mainfrom
fix/first-release-previous-tag
Sep 14, 2026
Merged

rafaeljusto merged 1 commit into
mainfrom
fix/first-release-previous-tag

Conversation

@rafaeljusto

Copy link
Copy Markdown
Contributor

Description

next-version emitted previous_tag=v0.0.0 when no tag exists, because the zero version renders that way. The release workflow only skips --notes-start-tag for an empty value, so it would name a tag that has never existed and fail the release of a repository's first tag.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests pass locally (go test -v ./...)
  • Added/updated tests for new functionality

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added necessary documentation
  • No new warnings or errors

next-version emitted previous_tag=v0.0.0 when no tag exists, because the
zero version renders that way. The release workflow only skips
--notes-start-tag for an empty value, so it would name a tag that has
never existed and fail the release of a repository's first tag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@rafaeljusto
rafaeljusto requested a review from a team as a code owner September 14, 2026 13:47
@rafaeljusto
rafaeljusto merged commit d7ca4fa into main Sep 14, 2026
4 checks passed
@rafaeljusto
rafaeljusto deleted the fix/first-release-previous-tag branch September 14, 2026 13:51
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