Managing labels
You can classify issues, pull requests, and discussions by creating, editing, applying, and deleting labels.
In this article
About labels
You can manage your work on GitHub by creating labels to categorize issues, pull requests, and discussions. You can apply labels in the repository the label was created in. Once a label exists, you can use the label on any issue, pull request, or discussion within that repository.
About default labels
GitHub provides default labels in every new repository. You can use these default labels to help create a standard workflow in a repository.
Label | Description |
---|---|
bug | Indicates an unexpected problem or unintended behavior |
documentation | Indicates a need for improvements or additions to documentation |
duplicate | Indicates similar issues, pull requests, or discussions |
enhancement | Indicates new feature requests |
good first issue | Indicates a good issue for first-time contributors |
help wanted | Indicates that a maintainer wants help on an issue or pull request |
invalid | Indicates that an issue, pull request, or discussion is no longer relevant |
question | Indicates that an issue, pull request, or discussion needs more information |
wontfix | Indicates that work won't continue on an issue, pull request, or discussion |
Default labels are included in every new repository when the repository is created, but you can edit or delete the labels later.
Issues with thegood first issue
label are used to populate the repository'scontribute
page. For an example of acontribute
page, seegithub/docs/contribute.
Organization owners can customize the default labels for repositories in their organization. For more information, seeManaging default labels for repositories in your organization.
Creating a label
Anyone with write access to a repository can create a label.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Issues or Pull requests.
Above the list of issues or pull requests, clickLabels.
To the right of the search field, clickNew label.
Under "Label name", type a name for your label.
Under "Description", type a description to help others understand and use your label.
Optionally, to customize the color of your label, edit the hexadecimal number, or, for another random selection, click.
To save the new label, clickCreate label.
Applying a label
Anyone with triage access to a repository can apply and dismiss labels.
- Navigate to the issue, pull request, or discussion.
- In the right sidebar, clickLabels, then click a label.
Editing a label
Anyone with write access to a repository can edit existing labels.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Issues or Pull requests.
Above the list of issues or pull requests, clickLabels.
In the labels list, to the right of the label you want to edit, clickEdit.
Under "Label name", type a name for your label.
Under "Description", type a description to help others understand and use your label.
Optionally, to customize the color of your label, edit the hexadecimal number, or, for another random selection, click.
ClickSave changes.
Deleting a label
Anyone with write access to a repository can delete existing labels.
Deleting a label will remove the label from issues and pull requests.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Issues or Pull requests.
Above the list of issues or pull requests, clickLabels.
In the labels list, to the right of the label you want to delete, clickDelete.