ci(release): include version number in Release PR title#204
Conversation
changesets/action does not support templating the version into the PR title or commit message (changesets/action#388). Add a post-processing step that reads the bumped version from package.json on the release branch and renames the PR to 'Release vX.Y.Z'. Also drop the 'chore:' prefix from the static title/commit values.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release workflow was updated to improve stable Release PR metadata. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates the stable release GitHub Actions workflow to produce clearer release PR titles by including the published package version, working around changesets/action’s lack of title templating.
Changes:
- Switch
changesets/actionPR title/commit inputs from achore:-prefixed string to a staticRelease. - Add a post-step that reads the bumped version from
changeset-release/mainand renames the release PR toRelease v<version>viagh pr edit.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Why
`changesets/action` does not support templating the version into the Release PR title or commit message — it accepts only a static string, and the default (`Version Packages`) also lacks the version. This is a long-standing upstream gap tracked in changesets/action#388 (open since Aug 2024), with related issues #303 and #353. The workaround used here — renaming the PR after the fact — is what several commenters on those issues report doing.
Notes
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit