feat: add automated PR comments on release#304
Conversation
This adds automation to comment on PRs when they are included in a release. The workflow parses CHANGELOGs to extract PR numbers and posts a comment with version info and links to the relevant CHANGELOG files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
|
View your CI Pipeline Execution ↗ for commit b085b94
☁️ Nx Cloud last updated this comment at |
@tanstack/config
@tanstack/eslint-config
@tanstack/publish-config
@tanstack/typedoc-config
@tanstack/vite-config
commit: |
Converts the PR commenting feature into a reusable composite action that any TanStack repo can use. Changes: - Move script to .github/comment-on-release/ directory - Create composite action at .github/comment-on-release/action.yml - Update release workflow to use the composite action - Other TanStack repos can now use: tanstack/config/.github/comment-on-release@main 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Explains how other TanStack repos can adopt this reusable action. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
lachlancollins
left a comment
There was a problem hiding this comment.
Amazing stuff! I've slightly tweaked the output to link directly to the version anchor within the changelog. I think it should also run without tsx (Node 24 executes TS, we shall see).
Summary
How It Works
changesets/actionpublishes packages, it outputs the list of published packages with their versionsghCLI with release info and CHANGELOG linksExample Comment
Files Added
.github/comment-on-release/action.yml- Reusable composite action.github/comment-on-release/comment-on-release.ts- Script that parses CHANGELOGs and comments on PRs.github/comment-on-release/README.md- Documentation for adopting this actionFiles Modified
.github/workflows/release.yml- Updated to use the new composite actionUsage in Other TanStack Repos
To enable PR commenting on releases in other TanStack repos, add this step to
.github/workflows/release.ymlafter the changesets action:Requirements
[#123](https://github.com/org/repo/pull/123)pull-requests: writepermissionpackages/{package-name}/CHANGELOG.mdTest Plan
🤖 Generated with Claude Code