docs: Update document to include issues permission
Description:
Error: HttpError: You do not have permission to create labels on this repository.: {"resource":"Repository","field":"label","code":"unauthorized"}
Error: You do not have permission to create labels on this repository.: {"resource":"Repository","field":"label","code":"unauthorized"}
Ran into this error, it seems that we have mission permission that's needed for the labeler to work.
Therefore, including the extra permission into the README.md so no one has to go through what I did. 😆
Related issue: https://github.com/orgs/community/discussions/156181
Check list:
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.
Yeah, I ran into the same thing, but odd that you need issue permission to write to write labels to a PR. furthermore, I have two identical repositories, with seemingly identical workflows, but the latest repository fails, but the older one does not. All settings are checked, and all tokens are verified:
works: https://github.com/phun-ky/typeof/actions/runs/14731948751 does not work: https://github.com/phun-ky/eslint-config/actions/runs/14795721253
I have experienced the same thing, but even with the issues permission it does not work for me: https://github.com/deppenpfostierung/bicycle-led-software/actions/runs/14823033959/job/41612578804
Any input from the author on this?
This resolved the permission issues for me!
Thank you for your valuable contribution, especially the documentation and permissions improvements! We are closing this PR because a similar enhancement, including necessary documentation and error handling, was recently merged in #897. Please review the relevant information here: https://github.com/actions/labeler?tab=readme-ov-file#recommended-permissions . We encourage you to check the current repository state and open a new issue or PR for any further suggestions. Thank you again for your time and helping improve @actions/labeler. We look forward to your future contributions!