-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add workflow to comment on PRs when released #1772
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
base: main
Are you sure you want to change the base?
Add workflow to comment on PRs when released #1772
Conversation
- Automatically comments on PRs included in a release - Only comments on PRs (not issues) using GitHub API validation - Compares current and previous release tags to find PRs - Minimal permissions: only requires pull-requests:write Fixes modelcontextprotocol#1759
|
Ready for your review @maxisbey |
|
Ready for your review @felixweinberger |
felixweinberger
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.
LGTM!
| with: | ||
| fetch-depth: 0 |
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.
I don't think we need this anymore given we're now using the API only?
Thanks! Code LGTM, but curious how you tested this? Did you run this locally somehow to generate the PRs? |
Motivation and Context
Adds a workflow that automatically comments on PRs when they're included in a release, notifying contributors their changes are live.
Approach
Custom workflow using GitHub's REST API:
Key Features
Only comments on PRs (not issues) - API validation ensures this
Minimal permissions - only
pull-requests: writerequiredHow Has This Been Tested?
Tested with releases v1.23.2 → v1.23.3:
Fixes #1759
Breaking Changes
No, Its an non-breaking change which adds functionality
Types of changes
Checklist