Learn GitHub
$ gh ghcollaboration.ghissues

GitHub Issues and Project Management

6 learning objectives · 10 key terms · 7 commands · 3 diagrams · 5 quiz questions

$objectives

GitHub Issues and Project Management

Collaboration

Module 2 of 5 · lesson 6 in this module

What you'll be able to do

  • Write an issue that someone else can act on without asking questions
  • Use labels, assignees, milestones and types to organise work
  • Link issues and pull requests so the tracker stays truthful
  • Set up issue templates and forms to collect better reports
  • Build a Projects board and move work through Backlog → Done
  • Plan a release with a milestone or roadmap view
$concept

The idea, in plain language

An issue is a tracked conversation about a piece of work: a bug, a feature, a question, a design decision. The title names the outcome; the body gives enough context to act — what you expected, what happened, how to reproduce it, and what you have already tried. Issues are numbered forever and never deleted, so they double as the project's searchable memory of decisions made years ago.

GitHub gives issues four organising axes. Labels classify them (bug, enhancement, documentation, good first issue). Assignees say who is accountable. Milestones group them into a release or a sprint with a due date and a completion count. And issue types or sub-issues express structure, such as a parent feature broken into tasks. None of these are bureaucracy if you keep the set small: a dozen labels people actually use beats forty nobody understands.

Projects is the board on top. You decide what columns mean (Todo, In Progress, Done) and the board fills itself from your issues and pull requests, either automatically for new items or by automation rules. The point is not the pretty board; it is that the workflow becomes visible, so work in progress is limited by agreement instead of by accident.

$key terms

Key terms

Issue
A numbered, permanent record describing work to be done, with discussion attached.
Label
A coloured tag such as bug or documentation used to filter and classify issues.
Assignee
The person accountable for the issue — usually one, at most a few.
Milestone
A group of issues with an optional due date, typically one release or sprint.
Issue template
A Markdown or YAML form that pre-fills new issues so reports contain the needed details.
Sub-issue
A child issue of a parent, used to break a large feature into tasks.
Projects
GitHub’s planning tool: boards, tables and roadmaps driven by issues and pull requests.
Backlog
Everything accepted but not yet planned into current work.
Closing keyword
Words such as Closes, Fixes or Resolves followed by an issue number, which close it on merge.
Triage
The routine of reviewing new issues, labelling them, and deciding whether they are in scope.
$steps

How it works, step by step

  1. 1
    Open the issue with an outcome-shaped title

    "Login times out after 5 minutes" is actionable. "Login broken" is a conversation. The title should be readable in a list of fifty.

  2. 2
    Fill the body with context, not just a complaint

    For a bug: what you expected, what happened, exact steps to reproduce, environment and version, any error output. For a feature: the problem, the proposed behaviour, and the alternatives you considered.

    bug report bodybash
    **Expected:** the session stays valid for 30 minutes of idle time.
    **Actual:** logged out after about 5 minutes.
    
    **Steps to reproduce**
    1. Log in at /login
    2. Leave the tab idle for 6 minutes
    3. Submit any form
    
    **Environment:** Safari 18.2, app v2.4.1 (commit 8c1d2ab)
  3. 3
    Label, assign, and attach to a milestone

    Labels make filtering possible; an assignee makes ownership explicit; a milestone ties the issue to the release it will ship in. Set all three while the context is fresh.

    or via the CLIbash
    gh issue create --title "Session times out after 5 minutes" --label bug --assignee @me --milestone v2.5
  4. 4
    Link the work that fixes it

    Reference the issue from the branch or commit, and put a closing keyword in the pull request description. GitHub then shows the link in both directions and closes the issue when the change merges.

    link both waysbash
    git commit -m "Extend session timeout (refs #128)"
    # and in the pull request description:
    Closes #128
  5. 5
    Put the issue on a board

    Add it to a Project, then move it through the columns as it progresses. Keep the number of columns small and the meanings unambiguous.

    add to a projectbash
    gh project item-add <project-number> --owner @me --url <issue-url>
  6. 6
    Close it deliberately

    Merging with a closing keyword closes the issue automatically. Otherwise close it by hand with a one-line comment saying what resolved it — the next reader will thank you.

$commands

Commands worth memorising

Every block below is copy-ready — use the Copy button, then paste it into your terminal. Expected output is shown underneath so you know what “working” looks like.

create an issuebash
gh issue create --title "Session times out after 5 minutes" --body-file bug.md --label bug
Output
https://github.com/ada/app/issues/128

The CLI version of the web form, and scriptable — a good fit for templated reports.

list open issuesbash
gh issue list --state open --label bug --limit 10
Output
128  Session times out after 5 minutes   bug        about 2 hours ago
121  Export fails for empty tables         bug        last week

Filtering by label is the fastest way to see what the team is actually dealing with.

close with an explanationbash
gh issue close 128 --comment "Fixed in #231 (squash-merged to main)."

A closing comment turns a dangling number into a story.

reference from a commitbash
git commit -m "Extend session timeout (refs #128)"

refs creates the link without closing the issue — useful when the change is one of several.

close automaticallybash
# in the pull request description
Closes #128
Fixes #131, #132

GitHub closes each referenced issue when the pull request merges into the default branch.

list milestonesbash
gh api repos/:owner/:repo/milestones --jq '.[] | "\(.title) \(.open_issues) open"'
Output
v2.5 3 open
v3.0 12 open

Useful for pasting release status into a stand-up note.

project board itemsbash
gh project list --owner @me
Output
NUMBER  TITLE        STATE
1       App roadmap  OPEN

The number is what other gh project commands need.

$diagrams

Workflow diagrams

Diagram 1A project board as a workflow

The columns are a policy you agree on, not decoration: work enters on the right edge and only moves forward with evidence.

Reading the diagram
  1. Backlog holds every accepted item — no filtering by "will we ever do this".
  2. To Do is the commitment for the current period.
  3. In Progress has a limit; exceeding it is the signal that something must finish before something else starts.
  4. An item moves to Review when its pull request is open, and to Done only when it is merged and shipped.
Diagram 2The life of an issue

Every stage leaves a trace on the issue itself, so the tracker needs no separate spreadsheet.

Reading the diagram
  1. A new issue waits in triage until someone decides whether it is real and in scope.
  2. Labelling and assigning make it workable; milestones tie it to a release.
  3. Linking the pull request makes progress visible without anyone writing a status update.
  4. Merging with a closing keyword closes the issue, leaving the whole story in one place.
Diagram 3A label set that stays useful

Keep the vocabulary small enough to remember. A label nobody filters by is noise.

Reading the diagram
  1. Two axes are enough for most teams: type and priority.
  2. Add status labels only for states a person must act on, such as blocked or needs-info.
  3. good first issue is an investment: it is how new contributors find something they can actually finish.
$example

Worked example

The full round trip: report a bug, fix it on a branch, and let the closing keyword tidy up.

issue to merged fixbash
gh issue create \
  --title "Session times out after 5 minutes" \
  --body "Expected 30 minutes idle; logged out after ~5. Steps: /login, idle 6 min, submit form." \
  --label bug --assignee @me --milestone v2.5
# https://github.com/ada/app/issues/128

git switch -c fix/session-timeout
# ... edit auth/session.py, add a boundary test ...
git commit -m "Extend idle session timeout to 30 minutes (refs #128)"
git push -u origin fix/session-timeout

# pull request description ends with:
#   Closes #128
# On squash-merge GitHub closes issue 128 automatically and shows:
#   ada closed this as completed in #231

git switch main && git pull
gh issue view 128 --json state,title --jq '.state + " — " + .title'
# CLOSED — Session times out after 5 minutes
Output
The issue, the branch, the commits, the review and the merge are all linked, and issue 128 closed itself.
1The issue body carries the three things a responder needs: expected behaviour, actual behaviour, and exact reproduction steps.
2Label, assignee and milestone are set at creation time, so the issue is immediately actionable and counted in the right release.
3The branch name mirrors the issue so anyone can connect them at a glance; refs #128 links without closing.
4The pull request description uses the closing keyword, which is what makes GitHub close the issue on merge rather than leaving it dangling.
5gh issue view confirms the resulting state — a two-command audit that the tracker matches reality.
$use cases

Where you'll use it

▸Converting a vague bug report from chat into something reproducible and fixable.
▸Planning a release by grouping issues under a milestone and watching the completion count.
▸Letting new contributors find scoped work through good first issue labels.
▸Keeping a decision record: why a feature was rejected, argued out in an issue thread years ago.
▸Running a small team board where the columns make work-in-progress limits visible.
▸Splitting a large feature into sub-issues so progress is measurable.
$mistakes

Common mistakes

  • Issues titled "bug" or "does not work" with no reproduction steps, which nobody can act on.
  • Using issues as a chat channel for questions that belong in discussions, burying real work.
  • Letting the label set grow past a dozen, so nobody knows which to apply.
  • Assigning an issue to five people — in practice that means nobody owns it.
  • Writing "Fixes #128" in a commit on a branch that is never merged, leaving the issue open forever.
  • Reopening a closed issue with a new, unrelated request instead of opening a fresh one.
$best practices

Best practices

  • Write the title as the outcome: "Login times out after 5 minutes", not "login problem".
  • Include reproduction steps, environment and expected versus actual behaviour in every bug report.
  • Add an issue template so good reports are the default, not the exception.
  • Triage new issues on a schedule — an untriaged queue is the same as no queue.
  • Link issues and pull requests in both directions and use closing keywords.
  • Keep one assignee per issue and keep the board columns to five or fewer.
$exercise

Hands-on exercise

Run a one-person sprint on a board

File the work, plan it, do it, and let GitHub close it.

  1. Create an issue describing a small improvement to one of your repositories, with a proper body and a label.
  2. Create a second issue with a different label, and a milestone that contains both.
  3. Create a Project board with Todo, In Progress and Done columns and add both issues to it.
  4. Branch off, make the change, push it, and open a pull request that says "Closes #<first issue>".
  5. Move the board card through In Progress and Review as you work, and note the automation GitHub performs for you.
  6. Merge the pull request, then confirm the issue closed automatically and the card landed in Done.

💡 Hint: Built-in project workflows can move cards to Done when an item is closed, and to In Progress when a linked pull request opens — worth enabling on your board.

Done when: Both issues appear on the board, one is closed by the merged pull request, and its card is in Done.

$quiz

Checkpoint quiz

0 of 5 answered · 0 correct

  1. Multiple choiceQ1

    Which issue title is most actionable?

  2. TroubleshootingQ2

    You wrote "Fixes #812" in the pull request description and merged. The issue is still open. Why might that be?

  3. Multiple choiceQ3

    What is the purpose of a milestone on GitHub?

  4. True or falseQ4

    True or false: on a project board, a card should stay in In Progress as long as you are still thinking about it.

  5. Multiple choiceQ5

    Why is "good first issue" a valuable label?

$summary

Module summary

  • An issue is a permanent, numbered conversation about work — it doubles as project memory.
  • Good issues state expected versus actual behaviour and how to reproduce the problem.
  • Labels, assignees, milestones and sub-issues organise work; keep each set small.
  • Closing keywords such as "Closes #128" close issues automatically on merge to the default branch.
  • Projects turns issues and pull requests into a visible board, table or roadmap.
  • Triage on a schedule, and keep In Progress limited so the board tells the truth.

Next up: You can now plan and review work inside one repository. Module 7 scales that model to the whole world: forking other people’s projects and contributing back.

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books

Practice what you learned

Put the GitHub course to work: open one of the company-wise repositories and follow the workflow you just learned, branch to release.