Labels
- Git course
- Intermediate
- Lesson 63/82
- 4 min
Learn to categorize issues with labels.
Issue Labels
A label is used to categorize issues by type or topic. A bug report can receive the bug label, while a feature request can receive enhancement. Labels make repository issues easier to group and search.
bug → Bug
enhancement → ImprovementOrganize Issues with Labels
You can add more than one label to an issue. For example, a bug report can have both the bug label and another label indicating its priority. Label names depend on the classification used by the project team.
Issue: Form cannot be submitted
Labels:
- bug
- high-priorityPractice Classify Labels
Store labels that could be used for a bug report in a list and print each label on a separate line.
Starter code
# Issue etiketleri
labels = NoneSample solution
labels = [
"bug",
"high-priority"
]
for label in labels:
print(label)Expected output
bug high-priority
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 Which label is suitable for categorizing a request for a new feature?
- main
- upstream
- bug
- enhancement Correct answer
Explanation: The enhancement label is used for requests involving new features or improvements to an existing project.
2 Bug Label
Bir yazılım hatasını belirten yaygın GitHub etiketi ____ şeklindedir.
Bir yazılım hatasını belirten yaygın GitHub etiketi bug şeklindedir.
Explanation: The bug label indicates that an issue is related to a software bug.
3 Issue Labels
| Term | Meaning |
|---|---|
bug |
Identifies a software bug |
enhancement |
A request for a feature or improvement |
label |
A marker that categorizes a record |
high-priority |
Identifies a high-priority record |