Issues
Issues are GitHub’s to-do list for a project. Each one is a bug, a task or an idea with its own discussion.
On this page · 5 min · Intermediate
On this page
- Learning objectives
- Explanation
- Step-by-step screens
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Intermediate
- Updated
- Nov 25, 2026
Learning objectives#
- Write a clear issue
- Use labels, assignees and milestones
- Close issues automatically from a PR
- Use task lists
Explanation#
Issues tab → New issue. A good bug report has a title that names the problem, steps to reproduce, what you expected, what happened, and a screenshot.
Labels (bug, enhancement, good first issue) group issues; Assignees say who is working on it; Milestones group issues for a release. A checklist (- [ ] item) shows progress.
Write Fixes #12 (or Closes #12) in a pull request description. When the PR is merged into main, issue #12 closes automatically and links to the change.
Step-by-step screens#
Drawings of github.com, the Git installer, VS Code and a terminal. GitHub changes its layout from time to time; the button names stay the same. The red numbers match the numbered actions under each picture; names on your computer will differ.
Loading pictures…
Code example: A good bug report#
Title: Contact form accepts an empty email
Steps to reproduce
1. Open /contact
2. Leave Email empty, type a message
3. Click Send
Expected: an error “Email is required”
Actual: the form says “Thanks!” and nothing is sent
Browser: Chrome 131 on Android
Labels: bug · Assignee: asha
Anyone can reproduce the bug in a minute. The PR that fixes it says “Fixes #12”, so the issue closes when it is merged.
This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.
Step-by-step explanation#
- The title names the problem.
- Numbered steps reproduce it.
- Expected vs actual removes guesswork.
- Environment details help with browser-specific bugs.
Real-world use case#
A small team keeps all work in issues; in the weekly meeting they look at open issues with the current milestone instead of long email threads.
Common mistakes#
Without steps and details nobody can help. Use the template above.
Split them so each can be fixed and closed separately.
Best practices#
- One problem per issue
- Steps, expected, actual
- Use labels consistently
- Link PRs with Fixes #n
Remember this#
Issues = tasks and bugs.
Labels, assignees, milestones.
Fixes #12 closes on merge.
Practice exercise#
Your task: Write the PR description line that closes issue 27 when merged.
Show solution
Fixes #27
Mini quiz#
When does “Fixes #12” in a PR close issue 12?
Want more? Practise all Git & GitHub MCQs · Git & GitHub interview questions
My notes#
Saved in this browser.