Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add version check to bagel#46

Open
SUSTAPLE117 wants to merge 2 commits intomainboostsecurityio/bagel:mainfrom
maint/versionCheckboostsecurityio/bagel:maint/versionCheckCopy head branch name to clipboard
Open

add version check to bagel#46
SUSTAPLE117 wants to merge 2 commits intomainboostsecurityio/bagel:mainfrom
maint/versionCheckboostsecurityio/bagel:maint/versionCheckCopy head branch name to clipboard

Conversation

@SUSTAPLE117
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 21:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-out, once-per-day version update check to the Bagel CLI, including persisted local state and documented telemetry/controls.

Changes:

  • Introduces pkg/versioncheck to persist per-user state and call a version-check endpoint on a 24h interval.
  • Wires the version check into CLI startup and adds --disable-version-check plus config support via disable_version_check.
  • Documents the behavior/telemetry and updates Go module dependencies.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Documents the new flag/config/env controls and the telemetry details.
cmd/bagel/root.go Runs the version check during CLI startup; adds flag + viper binding; skips for completion.
pkg/models/config.go Adds disable_version_check to the config model.
pkg/versioncheck/config.go Persists version-check state to the user config directory.
pkg/versioncheck/versioncheck.go Implements interval gating, request construction, and response parsing.
pkg/versioncheck/versioncheck_test.go Adds unit tests covering interval/disable/dev-version behavior and state persistence.
bagel.yaml Adds commented example config for disabling version checks.
go.mod Adds direct dependencies needed for version check (uuid, yaml).
go.sum Updates checksums for new dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/bagel/root.go
Comment thread pkg/versioncheck/config.go
Comment thread pkg/versioncheck/versioncheck.go
Comment thread pkg/versioncheck/versioncheck.go
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.