CodeBlanks Logo Icon CodeBlanks

Labels

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 → Improvement

Organize 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-priority

Practice 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

terminal
# Issue etiketleri
labels = None

Sample solution

terminal
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

Question
Bir yazılım hatasını belirten yaygın GitHub etiketi ____ şeklindedir.
Answer
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

All lessons in Intermediate

20 Intermediate final

  1. Branch management
  2. Rebase
  3. Conflict
  4. PR flow