Skip to content

fix: validate release inputs and reject version counter overflow - #24

Merged
Rasalas merged 2 commits into
mainfrom
fix/review-parsers
Sep 26, 2026
Merged

Rasalas merged 2 commits into
mainfrom
fix/review-parsers

Conversation

@Rasalas

@Rasalas Rasalas commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Malformed commit headers could trigger major or minor releases, and malformed numeric tags could become the release baseline. Version and build counters could also overflow into negative values that Tagger could no longer parse.

Validate the complete commit header before applying its type or breaking markers. Require canonical decimal version components and numeric suffixes. Version.Bump now returns an error on overflow, and the CLI stops before creating or pushing a tag. No-op bumps remain unchanged.

Closes #18
Closes #19
Closes #20

Validation: regression tests reproduced each failure before the fixes. Tests cover malformed headers, Git discovery with malformed numeric tags, portable integer boundaries, lower-component resets, and no create/push after overflow. Existing case-insensitive types, GitLab merges, and numeric suffix examples remain covered. go test ./..., go vet ./..., and golangci-lint v2.13.0 pass.

@Rasalas
Rasalas merged commit 99f403b into main Sep 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant