generated from jmeridth/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Describe the bug
If a label is mentioned in .github/release-drafter.yml
for auto-labeling and it is missing, we get an error like the following:
HttpError: You do not have permission to create labels on this repository
Since we're running the label with:
permissions:
content: read
pull-requests: write
That is to be expected.
To Reproduce
- add auto-labeling action from this repo to a repository
- wire-up release-drafter to a label that doesn't exist
- error
Expected behavior
If a label is mentioned in release-drafter.yml and doesn't exist, it should be created before being used. This might require higher permissions of the action. TBD.
Screenshots
No response