Repository navigation
ci(bundle): grant pull request write to the comment token - #1480
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Since 7a2b5e1 the "Comment on the PR" step of
bundle-size-commentfails on every PR, so no bundle report comment is posted. The upload to bundle.nuxt.dev still works.Runs: #1478, #1479.
What changed
pull-requests: write, instead ofissues: writeandpull-requests: read. On a PR, GitHub checks the Pull requests permission for listing, creating and updating issue comments, soissues: writealone is refused and isn't needed.Notes
workflow_runworkflows run frommain, so this can only be verified on the first PR after merge.ELI5
A bot is supposed to post a bundle size report on each pull request, but GitHub kept refusing because the bot asked for permission to write on issues instead of pull requests. It now asks for the pull request permission only.
🤖 Generated with Amp, reviewed by @larbish before opening.