Sub topic 2
Writing Issues People Can Act On
This chapter assumes you can create an issue in a repository and know what a pull request is. Here you will learn what makes an issue ready for someone to pick up, and how to fix the usual problems.
What "actionable" means
An actionable issue lets a reader start work without asking you a follow-up question. It answers four things:
- What is the problem or goal?
- What context is needed to understand it?
- How can someone see the problem for themselves?
- How will we know it is done?
A structure that works
Use a short, specific title and a body with a few labeled parts. The title should name the symptom or the outcome, not the feeling about it.
| Weak title | Better title |
|---|---|
| Date field broken | Date field saves invalid values such as 2026-13-45 |
| Improve search | Add keyword filter to the search page |
| It crashes | App crashes on startup when config.yml is empty |
For a bug, the body usually contains the following parts:
- Problem: what happened, in one or two sentences.
- Steps to reproduce: a numbered list anyone can follow.
- Expected and actual behavior: the difference between them.
- Environment: version, operating system, browser, or anything else that changes the result.
- Acceptance criteria: a checklist of conditions that mean the issue is finished.
Here is a complete example in Markdown.
## Problem
The date field accepts values that are not real dates and saves them.
## Steps to reproduce
1. Open the "New entry" form.
2. Type `2026-13-45` in the date field.
3. Click Save.
## Expected behavior
The form shows "Enter a valid date" and does not save.
## Actual behavior
The entry is saved with the invalid date.
## Environment
Version 1.4.2, Firefox 128, macOS 14
## Acceptance criteria
- [ ] Invalid dates are rejected with an error message
- [ ] Valid dates still save
- [ ] A test covers month 13 and day 45The checklist items render as checkboxes. Because each one is a testable statement, a reviewer can check them against the pull request.
Keep one issue to one problem
An issue that mixes three bugs cannot be closed until all three are fixed, and its discussion becomes hard to follow. If you find a second problem while writing, open a separate issue and mention it. The next chapters cover how to link issues to each other.
Common errors
- Vague reports. "It doesn't work" forces the reader to guess. State what you did and what you saw.
- Missing environment. Many bugs appear only on one version or platform.
- Solutions without a problem. "Use library X" hides the real need. Describe the need first, then suggest a solution.
- Pasted screenshots of text. Paste error messages and logs as text in a fenced code block so they can be searched and copied.
- No definition of done. Without acceptance criteria, reviewers and authors disagree about when to close the issue.
Exercise
A teammate files an issue titled "Login is weird" with the body "Sometimes it fails." Name three pieces of information to request, and rewrite the title.
Show answer
Ask for steps to reproduce, the expected and actual behavior (including any error message), and the environment (version, browser, or operating system). Acceptance criteria are also a valid answer. A better title is "Login fails with 'Invalid token' after the session has been idle for 30 minutes", or similar wording that names the symptom and the condition.
Exercise
Why should an issue that describes both a layout bug and a slow database query be split?
Show answer
Each problem can be fixed, reviewed, and closed separately. Combined, the issue stays open until both are done, and the comments for two unrelated topics get mixed together.