Skip to content

feat: add automatic update check and clean up README#8

Merged
utahcon merged 2 commits intomainfrom
feat/update-checker
Mar 6, 2026
Merged

feat: add automatic update check and clean up README#8
utahcon merged 2 commits intomainfrom
feat/update-checker

Conversation

@utahcon
Copy link
Copy Markdown
Owner

@utahcon utahcon commented Mar 6, 2026

Summary

  • Add background update checker that queries the GitHub Releases API at startup and prints a notice to stderr if a newer version is available (5s timeout, non-blocking)
  • Remove hardcoded version (v1.0.2) from README title so it doesn't go stale between releases
  • Replace stale version-management docs (VERSION file, scripts, git hooks) with current release-please + GoReleaser workflow
  • Document the new update notification behavior in the README

Test plan

  • Build and run against an org — verify no update notice when on latest version
  • Temporarily set version to 0.0.1 and rebuild — verify update notice is printed to stderr
  • Verify the update check does not delay the main operation (runs in background)
  • Run with no network — verify no error is shown (check silently fails)
  • Run --version flag still works correctly
  • Verify CI passes (build, lint, vet)

🤖 Generated with Claude Code

utahcon and others added 2 commits March 6, 2026 15:26
Check for newer releases via the GitHub API in the background during
each run. If a newer version exists, a non-blocking notice is printed
to stderr after the main operation completes (5s timeout).

Also removes the hardcoded version from the README title and replaces
stale version-management documentation (VERSION file, scripts, git
hooks) with the current release-please + GoReleaser workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@utahcon utahcon merged commit d918375 into main Mar 6, 2026
4 checks passed
@utahcon utahcon deleted the feat/update-checker branch March 6, 2026 22: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.

1 participant