diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-19 16:29:06 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-19 16:29:06 +0300 |
| commit | 2ca1d94d1c6785a40b722a581a842be6a8741cc6 (patch) | |
| tree | 4f5ee4a0a3f6f320b2f6b2ea08792f8fafece482 /internal/cmd/release.go | |
| parent | e23fc252fbac2aba69f1f1268af9425af4d43d19 (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/release.go')
| -rw-r--r-- | internal/cmd/release.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/cmd/release.go b/internal/cmd/release.go index f05005a..f9fa04f 100644 --- a/internal/cmd/release.go +++ b/internal/cmd/release.go @@ -12,6 +12,7 @@ var ( noAINotes bool updateExisting bool templatePath string + aiTool string ) var releaseCmd = &cobra.Command{ @@ -70,13 +71,17 @@ If no repository is specified, processes all configured repositories.`, gitsyncer release create --update-existing # Create for specific repository without AI - gitsyncer release create myproject --no-ai-notes`, + gitsyncer release create myproject --no-ai-notes + + # Use aichat instead of claude for AI release notes + gitsyncer release create --ai-tool aichat`, Run: func(cmd *cobra.Command, args []string) { flags := buildFlags() flags.CheckReleases = true flags.AutoCreateReleases = autoRelease flags.AIReleaseNotes = !noAINotes flags.UpdateReleases = updateExisting + flags.AITool = aiTool if len(args) > 0 { // Create releases for specific repo @@ -103,4 +108,5 @@ func init() { releaseCreateCmd.Flags().BoolVar(&noAINotes, "no-ai-notes", false, "disable AI-generated release notes (AI notes are enabled by default)") releaseCreateCmd.Flags().BoolVar(&updateExisting, "update-existing", false, "update existing releases with new AI-generated notes") releaseCreateCmd.Flags().StringVar(&templatePath, "template", "", "custom template for release notes") + releaseCreateCmd.Flags().StringVar(&aiTool, "ai-tool", "claude", "AI tool to use for release notes (claude or aichat)") }
\ No newline at end of file |
