12cb3a71af
- --verbose flag: config source table, per-commit type analysis, version decision explanation; output always to stderr - Colored structured output: logStep/logDone/logWarn symbols, ▸ verbose section headers, TTY-aware ANSI colors (NO_COLOR / TERM=dumb respected) - Name + version header printed at the start of every invocation - Default tag_prefix changed from "v" to "" (bare 1.2.3 tags by default) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5.8 KiB
5.8 KiB
Changelog
All notable changes to this project will be documented in this file. Format: Keep a Changelog.
[1.2.0] - 2026-07-07
Added
--verboseflag — prints a configuration table (each key, its value, and source:default/config file/env: VARNAME/flag: --name), lists every commit since the last tag with its parsed type and bump decision, and shows the final version choice; all output goes to stderr- Colored, structured CLI output — progress lines use
·/✓/!prefix symbols;--verbosemode uses▸section headers (configuration / branch / commits / version); commit type column colored by kind (cyan=feat, green=fix, red=breaking); config source tags colored; respectsNO_COLORandTERM=dumb; auto-disabled when stderr is not a TTY - Name and version header —
releaser vX.Y.Zprinted to stderr at the start of every invocation
Changed
- Default
tag_prefixis now empty — tags are bare version numbers (1.2.3) by default; addtag_prefix: "v"to.releaser.ymlor pass--tag-prefix vto opt in to thev-prefixed convention
[1.1.0] - 2026-07-07
Added
- CHANGELOG.md auto-update — every release now writes a new dated section to
CHANGELOG.md(grouped by Breaking Changes / Added / Fixed), committed alongsidepom.xmlin the release commit; file is created if it does not exist --changelog-fileflag — override the defaultCHANGELOG.mdpath (e.g.--changelog-file CHANGES.md)--initflag — scaffolds a fully-commented default.releaser.ymlin the repository root; errors if the file already existsCommitFilesingitutil— internal helper that stages multiple files before a single commit, used to bundlepom.xml+CHANGELOG.mdin one release commit
Fixed
- Push without token — go-git's HTTPS transport does not use the system credential store; when
GITLAB_TOKENis unset the push now delegates to thegitCLI so credential helpers, SSH agents, andnetrcall work as expected
[0.4.2] - 2026-07-07
Fixed
- CI build step —
go build ./cmd/...failed with "output already exists and is a directory" because Go tried to write a binary namedcmd, conflicting with the source directory; fixed by passing-o /dev/null - Optional pom.xml — releaser no longer fails when
pom.xml(or the configuredmaven.pom_path) does not exist; it logs a notice and proceeds directly to tag and push, making the tool usable in non-Maven projects
[0.4.0] - 2026-07-07
Added
- Branch parser — extracts
major.minorfromrelease/X.Ybranch names using a configurable regex pattern - Git tag discovery — finds the latest
vX.Y.*tag that is a reachable ancestor of HEAD (ignores tags on other version lines or unrelated branches) - Conventional Commits parser — non-strict mode: case-insensitive type, optional scope, flexible whitespace; unrecognised messages are silently skipped
- Commit range walker — scans from last matching tag to HEAD; falls back to full history on first release in a branch
- Version calculator — increments patch; returns nothing when there are no releasable commits (exit code 2 so CI can distinguish "nothing to do" from errors)
--dry-runflag — prints next version without making any changes--branchflag — overrides automatic branch detection for detached-HEAD CI environments--no-pushflag — commits and tags locally without pushing or creating a GitLab release--no-commitflag — updatespom.xmland stops; re-run with--tag-onlyafter manual review--tag-onlyflag — tags HEAD without touchingpom.xml(pair with--no-commitflow)- Dirty working-tree check — aborts before any changes if tracked files are modified or staged
.releaser.ymlconfig — optional YAML loaded from repo root; missing file is not an error; all fields have sensible defaults- Configurable tag prefix —
git.tag_prefixin config or--tag-prefixflag (default:v) - Configurable branch pattern —
git.branch_patternin config or--branch-patternflag (default:^(?:.*/)?release/(\d+)\.(\d+)$) - Configurable commit message —
git.commit_messagewith{version}placeholder (default:chore(release): {version} [skip ci]) - Configurable commit author —
git.author_name/git.author_email; falls back to repo git config - Configurable
pom_path—maven.pom_pathin config or--pomflag (default:pom.xml) pom.xmlreader / writer — in-place version update; correctly ignores<parent>and dependency version elements- GitLab release creation — minimal HTTP client (no SDK); auto-generates release notes grouped by Breaking Changes / Features / Bug Fixes
- HTTPS push with token auth —
oauth2+GITLAB_TOKEN GITLAB_TOKEN,CI_SERVER_URL,CI_PROJECT_ID,CI_PROJECT_PATHenv var support for GitLab CI environmentsDockerfile— multi-stage build, Alpine final image withca-certificates.releaser.gitlab-ci.yml— reusable GitLab CI job template (extends: .releaser:release) withGIT_DEPTH: 0and HTTPS push pre-wired.releaser.ymltemplate — annotated example of every config option with its default value- Gitea CI workflow — runs
vet,staticcheck,test,buildon every push - Gitea release workflow — cross-compiles five platform binaries (linux/amd64+arm64, darwin/amd64+arm64, windows/amd64) and publishes them as release assets on tag push
- Taskfile —
build,run,test,cov,cov:text,lint,fmt,tidy,fuzz,fuzz:all,ci,clean,docker:build,docker:run - 96% test coverage — integration tests use real in-memory git repositories; fuzz tests cover all parser entry-points