What's needed?
Creating labels correctly is a bit cumbersome because there are several steps involved, in particular for part:* labels:
- Create the label in GitHub
- Add the label to the labeler workflow to automatically label PRs.
- Add the label to the keyword labeler to automatically label issues.
- Add the label to the issue templates
We can automate most of this with a new workflow that runs on label creation plus allowing automatic creation of labels by the labeler action.
Proposed solution
What's needed?
Creating labels correctly is a bit cumbersome because there are several steps involved, in particular for
part:*labels:We can automate most of this with a new workflow that runs on label creation plus allowing automatic creation of labels by the labeler action.
Proposed solution
Add a workflow that updates the keyword labeler configuration to add the new label
When it has the shape of a
part:*, it can add it to:.github/keylabeler.ymlfile in thelabelMappingskey.github/ISSUE_TEMPLATE/bug.ymlfile in thepartfield.github/labeler.ymlwith an empty pattern if it is not present, if that's allowed, to make it easier for users to add a new patternEnable creation of new labels for the labeler workflow.
This can simplify creation of
part:*labels by just adding them to.github/labeler.yml. Then the previous workflow will be triggered and add the label to the rest of the files.