Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 8

Apply labels automatically at issue creation

Solved! Go to Solution.

I have seen the documentation on how to write custom templates for issues, and that is great. Tried the feature and it works perfectly. Now I am wondering if there's a way to tune each template to perform specific queries automatically. 

 

What I am specifically looking for is a way to encode the information to auto-label a new issues in the appropriate template. For instance if a user opens a bug report I want the tag "bug" to be automatically applied (given he has sufficient permissions to apply a label).

 

I have seen that I can do something like this using queries but the bit I am missing is if it is possible to generate those queries from the issue template.

 

Thanks in advance for any reply!

7 Replies
Community Manager
Message 2 of 8

Re: Apply labels automatically at issue creation

Hi @alalazo,

 

This isn't currently possible, but we're always working to improve GitHub and consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

 

Please let me know if you have any other questions.

 

Cheers!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Ground Controller Lvl 1
Message 3 of 8

Re: Apply labels automatically at issue creation

Started using the Issues Template. It is so cool.

 

Would be really happy to have labels attached along with templates.

Copilot Lvl 2
Message 4 of 8

Re: Apply labels automatically at issue creation

I see the issue template now support labels, but not projects, will project tag be added?

https://help.github.com/articles/manually-creating-a-single-issue-template-for-your-repository/

 

image.png

Community Manager
Message 5 of 8

Re: Apply labels automatically at issue creation

Hi @jasonycw,

 

We're always working to improve GitHub, and we consider every suggestion we receive. I don't know of any set plans to implement this, but I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

 

Please let me know if you have any other questions.

 

Cheers!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 2
Message 6 of 8

Re: Apply labels automatically at issue creation

@nadiajoyce Thank you for implementing the feature! One question: is there any way to apply multiple labels? For instance can I e.g. apply the labels "bug" and "help wanted" simultaneously to a type of report?

Solution
Community Manager
Message 7 of 8

Re: Apply labels automatically at issue creation

Hi @alalazo,

 

Yes, indeed! You just need to list them, and separate with commas. Example: 

labels: bug, feedback

 

^ That will produce an issue with the labels `bug` and `feedback` both applied.

 

Cheers!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 2
Message 8 of 8

Re: Apply labels automatically at issue creation

Hey @alalazo,

have a look at https://defects.ai
It is a service to predict labels for GitHub Issues fully automated, with machine learning models.
I am the creator of Defects AI, reach out to me if you have any questions ✌️

labeling.png

 

 

 

 

 



Cheers
Sascha