Skip to content

feat: include CLI version in User-Agent header#309

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/feature-include-cli-version
Draft

feat: include CLI version in User-Agent header#309
Copilot wants to merge 2 commits into
mainfrom
copilot/feature-include-cli-version

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown

The User-Agent header sent by miactl omitted the CLI version, making it impossible to track version adoption. After this change:

# versioned build
User-Agent: miactl@0.13.0 (darwin/arm64)

# unversioned/dev build (unchanged behavior)
User-Agent: miactl (darwin/arm64)

Changes

  • internal/version/version.go — new shared package holding Version and BuildDate vars, set via ldflags at build time
  • internal/cmd/version.go — removed local Version/BuildDate declarations; now imports from internal/version
  • internal/clioptions/clioptions.godefaultUserAgent() appends @<version> to the command name when version.Version is non-empty
  • MakefileVERSION_MODULE_NAME updated to github.com/mia-platform/miactl/internal/version; goreleaser picks this up from the environment automatically

Copilot AI linked an issue May 13, 2026 that may be closed by this pull request
1 task
Agent-Logs-Url: https://github.com/mia-platform/miactl/sessions/39f75b65-2f8e-4927-9c1c-d7720fed3fea

Co-authored-by: ThisIsDemetrio <5429953+ThisIsDemetrio@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CLI version to user-agent header feat: include CLI version in User-Agent header May 13, 2026
Copilot AI requested a review from ThisIsDemetrio May 13, 2026 14:32
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.

[Feature]: include cli version in user-agent

2 participants