diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-12 14:26:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-12 14:26:33 +0300 |
| commit | 1bf3a6227f76644ffc46070087bab973a68829d2 (patch) | |
| tree | 29675f2de37db19ca7115eb7e8c8d5f7b8f401aa /internal/release | |
| parent | f6abe615b658af4e218608bc664eba271510e599 (diff) | |
feat: improve AI release notes generation
- Display Claude CLI command being executed with prompt length
- Cache AI-generated release notes to avoid regenerating for same tag
- Use cached notes when creating/updating releases on different platforms
- Show when falling back to different Claude models
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/release')
| -rw-r--r-- | internal/release/release.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/release/release.go b/internal/release/release.go index 67350cf..ec4eaae 100644 --- a/internal/release/release.go +++ b/internal/release/release.go @@ -329,14 +329,20 @@ func (m *Manager) GenerateAIReleaseNotes(repoPath, repoName, tag string, allTags prompt.WriteString("\nDo not include the version number in the title as it will be added automatically.") // Run Claude CLI + fmt.Println(" Running Claude CLI command:") + fmt.Printf(" claude --model sonnet-3.5 <prompt>\n") + fmt.Printf(" Prompt length: %d characters\n", len(prompt.String())) + cmd := exec.Command("claude", "--model", "sonnet-3.5", prompt.String()) output, err := cmd.Output() if err != nil { // Try with sonnet-4 model + fmt.Println(" Trying with sonnet-4 model...") cmd = exec.Command("claude", "--model", "sonnet-4", prompt.String()) output, err = cmd.Output() if err != nil { // Try with default model + fmt.Println(" Trying with default model...") cmd = exec.Command("claude", prompt.String()) output, err = cmd.Output() if err != nil { |
