-
-
Notifications
You must be signed in to change notification settings - Fork 35
feat: add automated PR comments on release #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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