diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-07 22:07:27 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-07 22:07:27 +0200 |
| commit | ebc50a6600fcf4ebc53df4846f790bb05757b3df (patch) | |
| tree | 64e66a0cbed140a75aa580fe9ba02d510b68601c /internal/cmd | |
| parent | 545e65fe16c761822f0999b8f4ab05f1cd325975 (diff) | |
feat(sync): add throttled sync modev0.12.0
Introduce an opt-in throttle that skips inactive repos based on local
activity and per-repo cooldowns, and bump the version to 0.12.0.
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'internal/cmd')
| -rw-r--r-- | internal/cmd/sync.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/cmd/sync.go b/internal/cmd/sync.go index a28f50d..df7aa5b 100644 --- a/internal/cmd/sync.go +++ b/internal/cmd/sync.go @@ -15,6 +15,7 @@ var ( autoCreate bool noAIReleaseNotes bool syncAITool string + throttle bool ) var syncCmd = &cobra.Command{ @@ -190,6 +191,7 @@ func init() { syncCmd.PersistentFlags().BoolVar(&autoCreate, "auto-create-releases", false, "automatically create releases without confirmation") syncCmd.PersistentFlags().BoolVar(&noAIReleaseNotes, "no-ai-release-notes", false, "disable AI-generated release notes (AI notes are enabled by default)") syncCmd.PersistentFlags().StringVar(&syncAITool, "ai-tool", "amp", "AI tool to use for release notes when auto-creating (amp, claude, aichat, or hexai; amp is tried first if available)") + syncCmd.PersistentFlags().BoolVar(&throttle, "throttle", false, "throttle syncing based on local repo activity") } func buildFlags() *cli.Flags { @@ -202,6 +204,7 @@ func buildFlags() *cli.Flags { AutoCreateReleases: autoCreate, AIReleaseNotes: !noAIReleaseNotes, AITool: syncAITool, + Throttle: throttle, CreateGitHubRepos: createRepos, CreateCodebergRepos: createRepos, } |
