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
Additional context
Example where this occurred
Describe the bug
If a label is mentioned in
.github/release-drafter.ymlfor auto-labeling and it is missing, we get an error like the following:HttpError: You do not have permission to create labels on this repositorySince we're running the label with:
That is to be expected.
To Reproduce
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
Additional context
Example where this occurred