Comment changeset status in PRs#625
Conversation
|
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
This is now ready again. The action now works slightly differently to prevent token leaks when generating the release plan. See the PR description and the added README for more info. I was also considering adding a simple comment action so we don't have to recommend a third-party action, but I don't want to widen the scope for now. |
You can test the action with
uses: changesets/action/comment-pr-changeset@comment-pr-changeset-dist.Example workflow setup
See this action ... in action: bluwy/changesets-playground#1 (feel free to send PRs from forks for testing)
This actions focuses only on generating the comment, and defer the commenting to other actions. This is because we want to use reduced permissions for generating the comment to prevent risks of executing untrusted code and accessing the elevated github token. When changesets generate a release plan, we cannot guarantee in the future it will not execute code because of hooks/plugins or such.
When you have this workflow in your repo, you should disable the changeset bot for the repo so messages don't get reported twice. For this action, you should get the exact behaviour and messages from a bot. I didn't change the message for now.