Skip to content

Commit b7142a8

Browse files
x5iuclaude
andauthored
🐛 Fix release notes prompt to output content only (#5)
The previous prompt caused Claude to output its thinking process ("I've written professional release notes...") instead of just the release notes content. Updated prompt to: - Explicitly request ONLY the release notes content - Prohibit preamble, explanation, or commentary - Provide specific git command for reading commits - Specify exact markdown format to use 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 985d0a6 commit b7142a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
CURRENT_TAG="${{ steps.check_version.outputs.version }}"
6666
PREV_TAG="${{ steps.check_version.outputs.latest_tag }}"
67-
claude -p "Write release notes for this project (defc, a Go code generation tool). Current tag: ${CURRENT_TAG}, previous tag: ${PREV_TAG}. Read git commits between these two tags and write professional release notes in Markdown. Include: summary, new features, bug fixes, breaking changes (if any). Be concise." --output-format text > release_notes.md
67+
claude -p "Generate release notes for defc ${CURRENT_TAG} (a Go code generation tool). Previous version: ${PREV_TAG}. Instructions: 1) Read the git commits between ${PREV_TAG} and ${CURRENT_TAG} using: git log ${PREV_TAG}..HEAD --oneline; 2) Output ONLY the release notes content in Markdown format, nothing else; 3) Do NOT include any preamble, explanation, or commentary about what you are doing; 4) Format: ## Summary, ## New Features, ## Bug Fixes, ## Breaking Changes (omit empty sections); 5) Be concise and professional." --output-format text > release_notes.md
6868
6969
- name: Create Release
7070
if: steps.check_version.outputs.should_release == 'true'

0 commit comments

Comments
 (0)