How to create custom labels for issues on GitHub?

GithubIssue Tracking

Github Problem Overview


I've noticed that some organizations on GitHub have different labels that they can apply to issues.

For example, one organization that I am a part of allows any of these labels to be applied:

many labels

However, on my personal account, I am limited to only these labels, and I can't find a way to create my own custom ones:

my labels

Any ideas on how I can go about creating my own?

Github Solutions


Solution 1 - Github

It looks like you might be accessing GitHub on a mobile device, which likely exposes a somewhat different interface.

On the full web interface, simply navigate to https://github.com/:user/:repo/labels and click the green "New label" button at the top right. Existing labels can be edited or deleted on the same page.

You can also get to this page by clicking on "issues" and then "labels".

Solution 2 - Github

Here's a quick GIF to make the process as easy as it can be. (recorded at my GitHub profile)

> ⚡️ GIF —

> create github labels

Labels can be applied to issues and pull requests to signify priority, category, or any other information that you find useful.

▶ On GitHub, navigate to the main page of the repository.

  1. Under your repository name, click Issues or Pull requests.

  2. Issues Labels buttonNext to the search field, click Labels.

  3. Click New Label to create a new label, or click Edit to edit an existing one.

  4. In the text box, type your new label name.

  5. Select a color for the label from the color bar. You can customize this color by editing the hexadecimal number above the color bar.

label color

  1. Click Create Label to save the new label.

I hope it helps. Upvote it if it does.

Solution 3 - Github

The ui makes it hard to find!

You should be able to go to https://github.com/your_username/your_repo/labels

There's a github blog post that explains this in detail. https://help.github.com/articles/creating-and-editing-labels-for-issues-and-pull-requests/

Solution 4 - Github

If you find yourself doing this a lot, then you might want to try using my python script (or creating something similar) so that you can set up your own labels for each new repository...

https://github.com/martinpeck/gh-issue-label-generator

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionjohncorserView Question on Stackoverflow
Solution 1 - GithubChrisView Answer on Stackoverflow
Solution 2 - GithubAhmad AwaisView Answer on Stackoverflow
Solution 3 - GithubfilypeView Answer on Stackoverflow
Solution 4 - GithubMartin PeckView Answer on Stackoverflow