summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-12 14:30:05 +0300
committerPaul Buetow <paul@buetow.org>2025-07-12 14:30:05 +0300
commit7a2c4b61e5ecba37ae8e601bc7b408db2f6192ea (patch)
treeb394a48fb4c776ca19de8b441af2f40cf1230b7a
parentf585cbd56abbef26b2bae590fd451a41110f658f (diff)
feat: show Claude prompt preview when generating release notes
- Display first 500 characters of the prompt sent to Claude - Helps users understand what information is being provided - Makes the AI generation process more transparent 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
-rw-r--r--internal/release/release.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/release/release.go b/internal/release/release.go
index 6db36e6..8e92051 100644
--- a/internal/release/release.go
+++ b/internal/release/release.go
@@ -330,8 +330,15 @@ func (m *Manager) GenerateAIReleaseNotes(repoPath, repoName, tag string, allTags
// Run Claude CLI
fmt.Println(" Running Claude CLI command:")
- fmt.Printf(" claude --model sonnet <prompt>\n")
+ 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)
+ }
cmd := exec.Command("claude", "--model", "sonnet", prompt.String())
output, err := cmd.Output()