GitHub Issues and Project Management
6 learning objectives · 10 key terms · 7 commands · 3 diagrams · 5 quiz questions
GitHub Issues and Project Management
CollaborationWhat 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
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
- 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.
How it works, step by step
- 1Open 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.
- 2Fill 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)
- 3Label, 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 CLIbashgh issue create --title "Session times out after 5 minutes" --label bug --assignee @me --milestone v2.5
- 4Link 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 waysbashgit commit -m "Extend session timeout (refs #128)" # and in the pull request description: Closes #128
- 5Put 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 projectbashgh project item-add <project-number> --owner @me --url <issue-url>
- 6Close 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 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.
gh issue create --title "Session times out after 5 minutes" --body-file bug.md --label bug
https://github.com/ada/app/issues/128
The CLI version of the web form, and scriptable — a good fit for templated reports.
gh issue list --state open --label bug --limit 10
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.
gh issue close 128 --comment "Fixed in #231 (squash-merged to main)."
A closing comment turns a dangling number into a story.
git commit -m "Extend session timeout (refs #128)"
refs creates the link without closing the issue — useful when the change is one of several.
# in the pull request description Closes #128 Fixes #131, #132
GitHub closes each referenced issue when the pull request merges into the default branch.
gh api repos/:owner/:repo/milestones --jq '.[] | "\(.title) \(.open_issues) open"'
v2.5 3 open v3.0 12 open
Useful for pasting release status into a stand-up note.
gh project list --owner @me
NUMBER TITLE STATE 1 App roadmap OPEN
The number is what other gh project commands need.
Workflow diagrams
The columns are a policy you agree on, not decoration: work enters on the right edge and only moves forward with evidence.
- Backlog holds every accepted item — no filtering by "will we ever do this".
- To Do is the commitment for the current period.
- In Progress has a limit; exceeding it is the signal that something must finish before something else starts.
- An item moves to Review when its pull request is open, and to Done only when it is merged and shipped.
Every stage leaves a trace on the issue itself, so the tracker needs no separate spreadsheet.
- A new issue waits in triage until someone decides whether it is real and in scope.
- Labelling and assigning make it workable; milestones tie it to a release.
- Linking the pull request makes progress visible without anyone writing a status update.
- Merging with a closing keyword closes the issue, leaving the whole story in one place.
| Category | Typical labels | Purpose |
|---|---|---|
| Type | bug, enhancement, documentation, question | What kind of work is this |
| Priority | p1, p2, p3 | When it must be done relative to everything else |
| Status | needs-triage, blocked, needs-info | What it is waiting for right now |
| Effort | good first issue, help wanted | Who can pick it up, and an invitation to contribute |
Keep the vocabulary small enough to remember. A label nobody filters by is noise.
- Two axes are enough for most teams: type and priority.
- Add status labels only for states a person must act on, such as blocked or needs-info.
- good first issue is an investment: it is how new contributors find something they can actually finish.
Worked example
The full round trip: report a bug, fix it on a branch, and let the closing keyword tidy up.
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
The issue, the branch, the commits, the review and the merge are all linked, and issue 128 closed itself.
Where you'll use it
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
- 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.
Hands-on exercise
Run a one-person sprint on a board
File the work, plan it, do it, and let GitHub close it.
- Create an issue describing a small improvement to one of your repositories, with a proper body and a label.
- Create a second issue with a different label, and a milestone that contains both.
- Create a Project board with Todo, In Progress and Done columns and add both issues to it.
- Branch off, make the change, push it, and open a pull request that says "Closes #<first issue>".
- Move the board card through In Progress and Review as you work, and note the automation GitHub performs for you.
- 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.
Checkpoint quiz
0 of 5 answered · 0 correct
- Multiple choiceQ1
Which issue title is most actionable?
- TroubleshootingQ2
You wrote "Fixes #812" in the pull request description and merged. The issue is still open. Why might that be?
- Multiple choiceQ3
What is the purpose of a milestone on GitHub?
- 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.
- Multiple choiceQ5
Why is "good first issue" a valuable label?
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.
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
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.