68

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?

Ry-
  • 218,210
  • 55
  • 464
  • 476
johncorser
  • 9,262
  • 17
  • 57
  • 102

4 Answers4

99

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".

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
  • 1
    What about organisation? How do we create issue-labels for organisation, and credential (password) are we going to pass in? :) – Roy Lee Mar 14 '16 at 15:25
  • Is there a way to navigate to this place? (I was expecting to find it in the settings.) – Olivier Jacot-Descombes Sep 12 '16 at 21:50
  • 1
    @OlivierJacot-Descombes, on the desktop site go to the **Issues** tab, then click the **Labels** button. The mobile version doesn't seem to have a labels screen, but you can click the "Desktop version" link at the bottom right and go from there. You can return to the mobile version using the big grey link at the top of the page. – ChrisGPT was on strike Sep 12 '16 at 23:39
51

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.

Ahmad Awais
  • 33,440
  • 5
  • 74
  • 56
  • 3
    This was great, the official instructions say click next to the search box, but as your gif shows, is the Filter box. – Obromios Jan 11 '17 at 21:03
5

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/

filype
  • 8,034
  • 10
  • 40
  • 66
1

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

Louis
  • 146,715
  • 28
  • 274
  • 320
Martin Peck
  • 11,440
  • 2
  • 42
  • 69
  • 4
    You can suggest that people use your tools but you have to make the authorship explicit, otherwise the community considers it to be spam. Also, you should really explain how to use the tool. Otherwise, this makes your answer a link-only answer. – Louis Oct 20 '15 at 15:29