Git & GitHub
/Beginner
Labels
Definition
Colorful, customizable tags that can be applied to Issues and Pull Requests to help categorize and filter them.
Explain Like I'm New
Sticky notes for your to-do list. When you look at a repository with 500 open issues, it's overwhelming. Labels let you quickly color-code them: Red for `bug`, Green for `enhancement`, Blue for `documentation`.
Real World Example
A new developer joins an open-source project. They filter the issues tab by the label `good first issue` to find an easy, beginner-friendly bug to fix.
Common Use Cases
- •Organizing large projects
- •Triage workflows
Terminal Output
bash / terminal
/*
Custom Labels you might create for a Web Project:
- 'priority: high' (Color: Bright Red)
- 'priority: low' (Color: Yellow)
- 'frontend' (Color: Blue)
- 'backend' (Color: Green)
- 'needs design' (Color: Purple)
You can then query GitHub: `is:issue is:open label:frontend label:bug`
*/
Interview Questions
basic
- What are some default labels GitHub provides when you create a repository?
intermediate
- Can you filter a repository to show ONLY issues that have the 'bug' label?