Git & GitHub · Collaboration

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.

Intermediate 5 min Lesson 14 of 19Shows Git 2.47 and GitHub.com as of 2026. GitHub changes its layout from time to time; button names stay the same.
Before you start:Pull Requests
0/19 in Git & GitHub
On this page · 5 min · Intermediate

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#

TextA good bug report Illustrative
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
Expected output
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#

  1. The title names the problem.
  2. Numbered steps reproduce it.
  3. Expected vs actual removes guesswork.
  4. 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#

“It doesn’t work”

Without steps and details nobody can help. Use the template above.

One issue for many problems

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
Text Illustrative
Fixes #27

Mini quiz#

Issues quizMultiple choice Question 1 of 1

When does “Fixes #12” in a PR close issue 12?

Score so far: 0/0

Want more? Practise all Git & GitHub MCQs · Git & GitHub interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.