Skip to content

Conversation

@takai
Copy link
Owner

@takai takai commented Jan 19, 2026

This pull request adds explicit version reporting to the CLI and ensures version metadata is embedded at build time.

A new --version flag has been introduced to display the application version together with the corresponding Git commit hash. This allows users to quickly verify which build of git-ai-commit they are running, which is particularly useful when troubleshooting issues or comparing behavior across releases.

To support this, the build process has been updated to inject version and commit information at build time using Go linker flags. The GoReleaser configuration now passes the release version and short commit hash into the binary, replacing the previous hardcoded defaults used during local development.

@takai takai changed the title feat(cli): add version flag Add --version flag and embed build-time version metadata Jan 19, 2026
@takai takai merged commit 82fb8c6 into main Jan 19, 2026
1 check passed
@takai takai deleted the version_option branch January 19, 2026 12:22
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.

2 participants