Issues and project boards
Last updated
The family group chat is full of Kusina requests: "the flan is wrong", "add Tita's pancit!!", "index broken". They scroll away and get forgotten. Hosts have issues: one page per problem or idea, with a discussion, labels, and a link to the pull request that settles it. In this lesson you'll turn chat messages into good issues and close one from a commit.
By the end of this lesson you can
- Write an issue someone else could act on without asking
- Organise issues with labels and milestones
- Link a pull request to an issue so merging closes it
- Read a project board's columns
What makes a good issue
An issue is a page on the host for one problem or one idea. Anyone can open one (on public repositories); everyone can discuss it underneath. Each gets a number: #12.
A good issue lets someone act without coming back to ask:
- A title that says what: "Leche flan says 10 yolks; Lola's notebook says 12", not "flan wrong".
- For a problem: what you did, what you expected, what happened instead, and where (which file, which page, which device).
- For an idea: what you'd like and why it would help.
- One issue per thing. Two problems, two issues: they may be fixed by different people at different times.
- Search first. Someone may have opened it already; add to theirs instead.
From the group chat to issues
Turn each message into an issue title that someone could pick up. Each comes with what the person actually meant, from asking them.
In the chat:
the flan is wrongWhat they meant: leche-flan.md says 10 egg yolks. Page 9 of Lola’s notebook says 12.
0/72In the chat:
add Tita’s pancit!!What they meant: Tita Lorna’s pancit palabok isn’t in Kusina yet. She can send a photo of her card.
0/72In the chat:
index brokenWhat they meant: Running python build_index.py, the list on index.html skips any recipe in the desserts folder.
0/72In the chat:
pls fix asapWhat they meant: In sinigang.md, step 3 says to add the kangkong before the pork is cooked.
0/72
The description underneath would then add the detail: the page number, the steps to reproduce, a photo.
Labels and milestones
- Labels sort issues:
bug,new recipe,good first issue,question. Filter by one to see, say, every recipe request. Labels like "good first issue" help newcomers find somewhere to start (lesson 5.5). - Assignees say who's working on it, so two people don't.
- Milestones group issues for a goal or date: "Printed edition for Lola's 80th".
Closing an issue from a pull request
Write Fixes #12 (or Closes #12, Resolves #12) in a pull request's description, or in a commit message. When it's merged into the main branch, the host closes issue #12 by itself and links the two, so anyone reading the issue later can see exactly what fixed it.
Just mentioning #12 anywhere (a comment, a message) makes a link without closing it.
Here is a real issue, with the pull request that will close it linked under Development. It's the same pull request as in lesson 5.2:
- Title and number. Says exactly what’s wrong, in which file. The number is how pull requests refer to it:
#129159. - State and linked pull request. Open, in the project’s Backlog, with pull request #129160 linked.
- The report. The problem, quoted from the document, then why it’s wrong. Anyone can act on it.
- Labels, type, projects, milestone. How the maintainers sort it. Only people with triage access or more can set them (lesson 5.1).
- Development. Pull requests that will close this issue when merged.
And the issue list, filtered with the search box:
- New issue. Opens a form, often a template asking for exactly what the maintainers need.
- Pinned issues. Ones the maintainers want everyone to read first, such as common errors.
- Search.
is:issue state:open. Addlabel:bugorauthor:to narrow it. - Open and Closed. Open issues are still to do. Closed ones were fixed, answered or turned down.
- Linked pull requests and comments. How many pull requests and comments each issue has.
Project boards
A project board shows issues and pull requests as cards in columns, usually To do, In progress, In review and Done. Cards move as work moves; many hosts move them automatically when a pull request opens or merges.
GitHub calls them Projects; GitLab, issue boards; Codeberg, projects. Simple Software Development lesson 2.7 is about running work with boards.
Spot the trap: "doesn't work"
Joaquin opens an issue titled “doesn’t work”, with no description. Ana sees it two days later.
What happens if…
Check what you learned
Sources
Every command on this page behaves as these pages describe, and the sandbox prints what Git 2.55 prints. Hosting features (pull requests, protected branches) come from the host’s own documentation.
- GitHub Docs: About issues: what issues are for
- GitHub Docs: Linking a pull request to an issue: closing keywords such as Fixes and Closes
- GitHub Docs: About Projects: boards built from issues
- GitLab Docs: Issues: the same on GitLab, including issue boards