Skip to content

fix(tag): push local latest tag before bumping#627

Merged
birdmanmandbir merged 3 commits into
mainfrom
fix/tag-push-local-latest
Jun 21, 2026
Merged

fix(tag): push local latest tag before bumping#627
birdmanmandbir merged 3 commits into
mainfrom
fix/tag-push-local-latest

Conversation

@birdmanmandbir

Copy link
Copy Markdown
Contributor

Summary

  • Make ttal tag --bump reuse the latest local semver tag when origin does not have it yet.
  • Let the daemon push an existing local tag instead of failing during local tag creation.
  • Avoid deleting pre-existing local tags when a push fails; only roll back tags created by the daemon in that request.

Tests

  • go test ./cmd -run TestComputeBumpedTagReturnsLocalLatestWhenMissingFromRemote -count=1
  • go test ./internal/daemon -run TestHandleGitTag_PushesExistingLocalTag -count=1
  • go test ./cmd -run 'Test.*Tag|TestSemver' -count=1
  • go test ./internal/daemon -run 'Test.*GitTag|TestHandleGitTag|TestHTTPGitTag' -count=1
  • make test
  • make build

Note

  • make ci still fails on existing full-repo lint issues outside this diff, including goconst findings in unrelated packages and internal/gitprovider/provider.go:89 unused tailString.

@birdmanmandbir birdmanmandbir merged commit ec75945 into main Jun 21, 2026
6 checks passed
@birdmanmandbir birdmanmandbir deleted the fix/tag-push-local-latest branch June 21, 2026 07:00
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