summaryrefslogtreecommitdiff
path: root/internal/cmd/sync.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-19 16:29:06 +0300
committerPaul Buetow <paul@buetow.org>2025-07-19 16:29:06 +0300
commit2ca1d94d1c6785a40b722a581a842be6a8741cc6 (patch)
tree4f5ee4a0a3f6f320b2f6b2ea08792f8fafece482 /internal/cmd/sync.go
parente23fc252fbac2aba69f1f1268af9425af4d43d19 (diff)
feat: add support for aichat as AI tool for release notesv0.8.0
- Add --ai-tool flag to release and sync commands - Support both 'claude' and 'aichat' options (default: claude) - Update GenerateAIReleaseNotes to handle both tools - Add tool-specific error messages and hints - Update documentation with usage examples This allows users to choose between Claude CLI and aichat for generating AI-powered release notes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/cmd/sync.go')
-rw-r--r--internal/cmd/sync.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/cmd/sync.go b/internal/cmd/sync.go
index abedb7e..9fcf0fd 100644
--- a/internal/cmd/sync.go
+++ b/internal/cmd/sync.go
@@ -14,6 +14,7 @@ var (
noReleases bool
autoCreate bool
noAIReleaseNotes bool
+ syncAITool string
)
var syncCmd = &cobra.Command{
@@ -39,7 +40,10 @@ var syncRepoCmd = &cobra.Command{
gitsyncer sync repo myproject --dry-run
# Sync without AI-generated release notes
- gitsyncer sync repo myproject --no-ai-release-notes`,
+ gitsyncer sync repo myproject --no-ai-release-notes
+
+ # Auto-create releases using aichat for AI notes
+ gitsyncer sync repo myproject --auto-create-releases --ai-tool aichat`,
Run: func(cmd *cobra.Command, args []string) {
flags := buildFlags()
flags.SyncRepo = args[0]
@@ -185,6 +189,7 @@ func init() {
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)")
+ syncCmd.PersistentFlags().StringVar(&syncAITool, "ai-tool", "claude", "AI tool to use for release notes when auto-creating (claude or aichat)")
}
func buildFlags() *cli.Flags {
@@ -196,6 +201,7 @@ func buildFlags() *cli.Flags {
NoCheckReleases: noReleases,
AutoCreateReleases: autoCreate,
AIReleaseNotes: !noAIReleaseNotes,
+ AITool: syncAITool,
CreateGitHubRepos: createRepos,
CreateCodebergRepos: createRepos,
}