From 09a333cdc72186d95c28933d15035f405e0d4ea9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 13 Jul 2025 22:24:16 +0300 Subject: feat: make AI release notes the default behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AI-generated release notes are now enabled by default - Add --no-ai-release-notes flag to disable AI notes - Update all documentation and examples to reflect new default - Works for both sync commands and release commands Users now get AI-generated release notes automatically: gitsyncer sync repo myproject # AI notes enabled gitsyncer sync repo myproject --no-ai-release-notes # Disable AI gitsyncer release create # AI notes enabled gitsyncer release create --no-ai-notes # Disable AI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/cmd/sync.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'internal/cmd/sync.go') diff --git a/internal/cmd/sync.go b/internal/cmd/sync.go index ad67178..9efa432 100644 --- a/internal/cmd/sync.go +++ b/internal/cmd/sync.go @@ -13,6 +13,7 @@ var ( createRepos bool noReleases bool autoCreate bool + noAIReleaseNotes bool ) var syncCmd = &cobra.Command{ @@ -28,14 +29,17 @@ var syncRepoCmd = &cobra.Command{ Short: "Sync a specific repository", Long: `Synchronize a specific repository across all configured organizations.`, Args: cobra.ExactArgs(1), - Example: ` # Sync a single repository + Example: ` # Sync a single repository (AI release notes enabled by default) gitsyncer sync repo myproject # Sync with backup locations gitsyncer sync repo myproject --backup # Preview what would be synced - gitsyncer sync repo myproject --dry-run`, + gitsyncer sync repo myproject --dry-run + + # Sync without AI-generated release notes + gitsyncer sync repo myproject --no-ai-release-notes`, Run: func(cmd *cobra.Command, args []string) { flags := buildFlags() flags.SyncRepo = args[0] @@ -179,6 +183,8 @@ func init() { syncCmd.PersistentFlags().BoolVar(&backup, "backup", false, "include backup locations") syncCmd.PersistentFlags().BoolVar(&createRepos, "create-repos", false, "auto-create missing repositories") syncCmd.PersistentFlags().BoolVar(&noReleases, "no-releases", false, "skip release checking after sync") + 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)") } func buildFlags() *cli.Flags { @@ -189,5 +195,6 @@ func buildFlags() *cli.Flags { Backup: backup, NoCheckReleases: noReleases, AutoCreateReleases: autoCreate, + AIReleaseNotes: !noAIReleaseNotes, } } \ No newline at end of file -- cgit v1.2.3