summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-12 20:01:49 +0300
committerPaul Buetow <paul@buetow.org>2025-07-12 20:01:49 +0300
commitfadc1a49efb4a6efc3303f0c141c769b6ea2513a (patch)
tree1b295085a54fee53173fff4a5c7ae4c9aa63ed53
parent3b2f1284ca768c3da293fd0b09f046c170d95f4d (diff)
fix: remove commit messages from AI generation output
- 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 <noreply@anthropic.com>
-rw-r--r--internal/release/release.go11
1 files 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