From fadc1a49efb4a6efc3303f0c141c769b6ea2513a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 12 Jul 2025 20:01:49 +0300 Subject: fix: remove commit messages from AI generation output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace verbose prompt preview with summary statistics - Show number of commits and size of code changes instead - Avoid cluttering output with raw commit messages - Keep focus on the AI-generated release notes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/release/release.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/internal/release/release.go b/internal/release/release.go index 4245bd2..1cb99ac 100644 --- a/internal/release/release.go +++ b/internal/release/release.go @@ -331,14 +331,9 @@ func (m *Manager) GenerateAIReleaseNotes(repoPath, repoName, tag string, allTags // Run Claude CLI fmt.Println(" Running Claude CLI command:") fmt.Println(" claude --model sonnet \"...\"") - fmt.Printf(" Prompt length: %d characters\n", len(prompt.String())) - fmt.Println(" Prompt preview (first 500 chars):") - promptStr := prompt.String() - if len(promptStr) > 500 { - fmt.Printf(" %s...\n", promptStr[:500]) - } else { - fmt.Printf(" %s\n", promptStr) - } + fmt.Printf(" Prompt: Generate release notes for %s %s\n", repoName, tag) + fmt.Printf(" Prompt includes: %d commits, %.1fKB of code changes\n", len(commits), float64(len(diff))/1024) + fmt.Printf(" Total prompt length: %d characters\n", len(prompt.String())) cmd := exec.Command("claude", "--model", "sonnet", prompt.String()) output, err := cmd.CombinedOutput() // Use CombinedOutput to capture stderr -- cgit v1.2.3