From 09de2078c3fe9b2dcdd46b5b486446cf4af1dcc6 Mon Sep 17 00:00:00 2001 From: Noah Brier Date: Sat, 13 Sep 2025 22:05:57 -0400 Subject: [PATCH] fix: ensure release command creates GitHub release automatically - Add step to use gh release create after pushing tags - Prevents missing GitHub releases like v0.8.2-v0.8.5 - Extracts release notes from CHANGELOG.md automatically --- .claude/commands/release.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.claude/commands/release.md b/.claude/commands/release.md index 28ef457..a5f70b5 100644 --- a/.claude/commands/release.md +++ b/.claude/commands/release.md @@ -47,9 +47,15 @@ Automates the entire release process: analyzes recent commits to determine versi - Push commits: `git push` - Push tags: `git push --tags` -5. **Provide Next Steps** - - Show link to create GitHub release - - Remind to add release notes from changelog +5. **Create GitHub Release** + - Use `gh release create` to publish the release automatically + - Extract the version section from CHANGELOG.md for release notes + - Include the "Generated with Claude Code" footer + - This ensures the release is visible in GitHub's releases page + +6. **Provide Confirmation** + - Show the GitHub release URL + - Confirm successful publication ## Version Bump Rules @@ -140,13 +146,11 @@ claude run release major # ✅ Committed changes # ✅ Created tag v0.2.0 # ✅ Pushed to GitHub +# ✅ Created GitHub release # # 🎉 Release v0.2.0 complete! # -# Next steps: -# 1. Go to https://github.com/user/repo/releases/new?tag=v0.2.0 -# 2. Add release notes from CHANGELOG.md -# 3. Publish the release +# GitHub Release: https://github.com/user/repo/releases/tag/v0.2.0 ``` ## Error Handling