Allow non-contributors to add labels to issues/pull requests #125382
-
Select Topic AreaQuestion BodySo, I have a GitHub repo that I think people may want to interact with. And I want those people which aren't contributors, to add some labels. Maybe like a separate setting for each label? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Issue templates/forms allow you to assign initial labels for various issue types. I think this is enough to handle the majority of cases, because I think generally you only want non-maintainers to assign labels at issue creation, not give them the ability to change labels after creation. If you to grant users the ability to assign labels after the issue is created, you can write a GitHub Workflow that listens to issue comments getting created and checks for text like As far as pull requests go you might want to set up an auto-labeler. Here's an action to do that, or you could write your own script. Personally, I wrote an auto-labeling workflow that compares an old and new file and adds the appropriate label if the changes look good. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Issue templates/forms allow you to assign initial labels for various issue types. I think this is enough to handle the majority of cases, because I think generally you only want non-maintainers to assign labels at issue creation, not give them the ability to change labels after creation.
If you to grant users the ability to assign labels after the issue is created, you can write a GitHub Workflow that listens to issue comments getting created and checks for text like
/label bug. I could write out an example workflow if that's the way you want to go, but I'd recommend writing issue templates or issue forms instead.As far as pull requests go you might want to set up an auto-labeler. Here'…