Skip to main content

Testing and QA · Beginner · 13 min

Write bug reports that get fixed

By Padding · Updated 18 Nov 2026
GitHub Issues and Chrome DevTools · November 2026

You will turn three weak bug reports into ones a developer can act on in five minutes, and add a bug report form to a GitHub repository so every new report asks for the same facts.

On this page

A bug report is a request for someone else's time. The developer who picks it up has to understand what you saw, make it happen on their own machine, and decide whether it matters more than the other forty things in the queue. If any of those three is hard, the report waits. Reports that wait get closed as "cannot reproduce" or quietly go stale, and the bug ships.

A report gets fixed when it answers, up front, the questions a developer would otherwise have to ask you: where, what exactly, on what build, how often, and who is hurt. This tutorial gives you a fixed shape for those answers. You learn each part by rewriting three weak reports from the Larkfield Clinic booking app, the fictional clinic app used across the testing tutorials, where patients pick a slot, pay a deposit and get a reminder. At the end you add a form to GitHub Issues so the shape is asked for every time.

If you are still working out what causes the bug, start with finding a bug step by step. This tutorial is about reporting what you have found.

Here are the three reports you will rewrite. Copy them into your notes file.

Text
REPORT 1
Title: Booking broken
Body: Booking doesn't work, please fix ASAP.

REPORT 2
Title: Bug on payment
Body: I paid but it said error. Tried a few times. Using my phone.

REPORT 3
Title: Reminder issue
Body: Some patients are saying they got the reminder in the wrong language
or at the wrong time, not sure which. See attached.
(attachment: a photo of a phone screen, taken with another phone)

Step 1 · Write a title that names the symptom and the place

The title is what people read in a list of fifty issues, in a notification email and in a triage meeting. It has to say what goes wrong and where, in plain words, without opening the report.

Use this pattern: where, what happens, under what condition.

  • Where: the screen, page, endpoint or feature, by the name the team uses.
  • What happens: the visible symptom, not your guess at the cause.
  • Condition: the thing that makes it happen, if you know it.

Rewrites for the three reports:

Text
1. Booking: "Confirm" does nothing for slots after 17:00 on the web app
2. Payment: deposit taken but booking shows "Payment failed" after a network drop on Android
3. Reminders: SMS reminder sent in English to patients whose language is set to Hausa

Some habits that keep titles useful:

  • Name the symptom, not the fix. "Add retry to payment webhook" is a task; "deposit taken but booking shows failed" is a bug, and the developer may find a better fix than yours.
  • Leave out "urgent", "ASAP" and "critical". Urgency belongs in the impact section, backed by facts, where triage can weigh it.
  • Avoid words that hide the symptom: "broken", "issue", "not working", "weird".
  • Keep it under about 80 characters so it fits in a list without being cut off.

Report 3 is a good example of why the title forces clarity. "Wrong language or wrong time, not sure which" is two possible bugs. Before you can write the title you have to find out which one you have, or file two reports. Here, checking three of the complaints showed they were all about language, so that is the title.

Check it worked

Read each of your three titles to someone who has not seen the bodies. They can say which part of the app is affected and what the user sees, and none of the titles contains "broken", "issue", "not working" or "ASAP".

Step 2 · Cut the steps to reproduce down to the minimum

Steps to reproduce are the core of the report. A developer follows them literally, so they must start from a known state and contain nothing extra.

Write them like this:

  • Start from a state anyone can reach: "Signed in as a test patient with no upcoming bookings", not "on my account".
  • Number every step, one action per step.
  • Use exact values: the slot time, the test card, the input text you typed.
  • Name buttons and fields by their label on screen, in quotes.
  • Stop at the step where the symptom appears.

Then make them minimal. Go through your steps and remove one at a time, running the rest each time. If the bug still happens, the step was not needed. Three short steps that always fail are worth more than twelve that include everything you happened to do. The steps you could not remove often point straight at the cause: in Report 1, the bug only happened when the chosen slot was after 17:00, which is a strong clue for the developer.

The rewritten steps for Report 1:

Text
Steps to reproduce
1. Sign in to the web app as a test patient with no upcoming bookings.
2. Open "Book an appointment" and choose any practitioner.
3. Pick any slot at 17:00 or later on a weekday.
4. Click "Confirm".

Notes: slots before 17:00 confirm normally. Same result for every
practitioner tried (three of them).

If you cannot make it happen again, say so honestly and give what you have: what you were doing, the time it happened (to the minute, with time zone, so someone can find it in the logs) and the account used. A report that says "seen once, could not reproduce in ten attempts" is still useful. A report that pretends to have steps is not.

Check it worked

For each report, follow your own steps from the starting state, exactly as written, and the bug appears. Removing any one step makes the steps either fail to reach the bug or stop making sense. Every value is concrete: no "some slot" or "a few times".

Step 3 · State expected and actual results separately

Put what should happen and what does happen in two labelled lines. This stops the reader guessing which part of your description is the bug, and it surfaces disagreements early: sometimes your "expected" is not what the product is meant to do, and the report becomes a question for the product owner instead of a bug.

Text
Expected: booking is confirmed, the "You're booked" screen shows the
slot, and a confirmation SMS is sent.
Actual: nothing happens when "Confirm" is clicked. No message, no
loading indicator. The slot stays selected. Clicking again does nothing.

Say where your expectation comes from if it is not obvious: a requirement, a design file, how the Android app behaves, or what it did in the previous release. "Expected (as in 4.11.2)" tells the developer this is a regression, which usually makes it easier to find.

Describe the actual result in observable terms. "Nothing happens" is fine if that is what you saw. "The API fails" is a conclusion; "the network panel shows POST /bookings returning 500" is an observation. Report the observation, and give your theory separately if you have one, clearly marked as a guess.

For Report 2:

Text
Expected: after the network comes back, the booking shows "Confirmed"
with the deposit paid, or shows "Payment failed" and the deposit is not
taken.
Actual: booking shows "Payment failed". The payment provider's test
dashboard shows the deposit as captured. Booking stays "Payment failed"
after closing and reopening the app.

Check it worked

Each report has a line starting "Expected:" and a line starting "Actual:". The actual line describes only what you saw or measured, and any theory about the cause sits under its own "Possible cause (guess):" label or is left out.

Step 4 · Record the environment and build

A bug that happens on one build, browser or device and not another is common. Without this section the developer tests on their own laptop, sees nothing, and closes the report.

Record what is relevant to your product. For a web and mobile app like Larkfield:

Text
Environment
App build: Android 4.12.0 (build 412) - from Settings > About
Server: staging, API version 2026.11.17-2 (from /health)
Device: Tecno Spark 10, Android 13, 3 GB RAM
Network: mobile data, switched off and on during payment
Account: test patient patient-b@example.test
Time seen: 2026-11-18 10:42 WAT (UTC+1)

The exact build matters most. "Latest" means a different thing a day later. Take it from the app's About screen, the page footer or a version endpoint, not from memory.

Name the real device when it is a phone. A bug that only shows on a low-end Android phone with little memory, which is what many users in Nigeria and across Africa have, is a real bug, not an edge case, and the developer needs to know which phone to pick from the device shelf or emulator list. The same goes for the network: "mobile data, weak signal" or "switched off mid-step" is often the condition that matters.

Use test accounts in reports, never a real patient's or customer's details. If the bug only shows on a real account, give an internal account ID that the team can look up, not a name, phone number or email address.

Check it worked

Each report has an Environment section with an exact build number taken from the product itself, the device or browser with its version, the server or environment name, and a time with its time zone. No real person's name, phone number or email address appears in it.

Step 5 · Attach evidence with secrets removed

Evidence saves the developer from taking your word for it. Choose the kind that shows the symptom most directly:

  • A screenshot for a wrong label, a layout fault or an error message. Take it on the device, not a photo of the screen, and crop it to the part that matters. Draw a box around the problem.
  • A short screen recording for anything that depends on timing or sequence, such as a double tap or a spinner that never stops. Ten to thirty seconds is plenty.
  • Logs for errors behind the screen: the browser console, the app's log output, or a request ID from an error page. Paste the relevant lines as text in a code block, so they can be searched, rather than as an image.
  • A HAR file when the bug is about network requests. It records every request and response the page made.

A HAR file can contain session cookies, access tokens and personal data. In Chrome DevTools, the Network panel's export button saves a sanitised HAR by default, which leaves out the Cookie, Set-Cookie and Authorization headers; exporting those needs a setting turned on first, so leave it off. Sanitising does not remove everything. Tokens in URLs, request bodies with card or personal details, and response bodies with patient data are still in the file. Before you attach it, open the HAR in a text editor, search for token, password, key, @ and the test account's details, and remove or replace what you find. If the file is large or you are unsure, attach only the one failing request copied as text, with secrets replaced by REDACTED.

For Report 3, the photo of a phone screen is replaced with a screenshot of the SMS log entry from the admin view, showing the template language used, and the patient's language setting, with the phone number cropped out.

For Report 2, the relevant lines from the app's log are pasted as text. The request ID lets the developer find the same request in the server logs:

Text
2026-11-18 10:42:07 WAT POST /payments/deposit request_id=req_7f3a9c timeout after 30000 ms (network lost)
2026-11-18 10:42:41 WAT GET /bookings/bk_20418 request_id=req_7f3b12 status=200 booking.state=payment_failed

Keep attachments small. A developer on a slow or prepaid connection should not need to download 200 MB to read your report; trim recordings and compress screenshots.

Check it worked

Every report has at least one piece of evidence that shows the symptom without your explanation. Any HAR or log you attach has been searched for token, password, key and @, and contains no session cookie, access token or personal data.

Step 6 · Add frequency and impact

The last two parts help triage decide when to fix it. Neither is about how annoyed you are.

Frequency says how reliably it happens: "every time (10 of 10)", "about 1 in 5 attempts", or "seen once, not reproduced in 10 attempts". Give the counts, not "sometimes".

Impact says who is hurt and how, with facts:

  • Who: which users, and roughly how many if you know. "All web users booking evening slots" or "patients with a non-English language setting, about 18 percent of active patients per the admin report".
  • What they lose: money, data, time, trust, or a task they cannot finish.
  • Workaround: whether there is one, and whether a real user would find it.

For Report 2:

Text
Frequency: 4 of 6 attempts when data is switched off during the
"Processing payment" screen; 0 of 10 with a steady connection.

Impact: patients are charged a deposit but see "Payment failed" and
have no booking. Likely to book and pay again, so they can be charged
twice. Support has had two complaints this week that match. Workaround:
none for the patient; support can confirm the booking by hand.

This is the section that turns "please fix ASAP" into something a team can act on. Lost money with no patient workaround will be treated as urgent without you saying the word. How severity and priority are set from this information is covered in triaging bugs by severity and priority.

Before you file, search the tracker for the symptom and the screen name. If the bug is already reported, add your build, steps and evidence to the existing report instead of opening a new one.

Check it worked

Each report gives frequency as a count of attempts, names the group of users affected, says what they lose and states whether a workaround exists. You searched the tracker for each one and found no existing report, or you added to the one you found.

Step 7 · Add a bug report form to GitHub Issues

Now make the shape the default. GitHub Issues supports issue forms: a YAML file in .github/ISSUE_TEMPLATE/ that shows a form with labelled fields when someone opens a new issue, and can make fields required. GitHub describes issue forms as being in public preview, so check the docs if a key behaves differently. If your team prefers plain Markdown templates, the same headings work as a Markdown issue template instead.

Required fields (validations.required: true below) only block submission in public repositories. In a private repository the form still shows every field, but someone can submit it with them empty, so the review habit at the end of this step matters more.

Create .github/ISSUE_TEMPLATE/bug_report.yml in your repository with this content:

YAML
name: Bug report
description: Something in the product does not work as expected.
title: "[Bug] <where>: <what happens> <condition>"
labels: ["bug", "needs-triage"]
body:
  - type: markdown
    attributes:
      value: |
        Use a test account. Do not paste passwords, tokens, cookies or real
        customer details. Remove secrets from HAR files and logs first.
  - type: textarea
    id: steps
    attributes:
      label: Steps to reproduce
      description: Start from a state anyone can reach. One action per step. Exact values.
      placeholder: |
        1. Sign in as a test patient with no upcoming bookings
        2. ...
    validations:
      required: true
  - type: textarea
    id: expected
    attributes:
      label: Expected result
      description: What should happen, and where that expectation comes from.
    validations:
      required: true
  - type: textarea
    id: actual
    attributes:
      label: Actual result
      description: What you saw. Put any theory about the cause on a separate line marked as a guess.
    validations:
      required: true
  - type: textarea
    id: environment
    attributes:
      label: Environment
      description: Exact build, device or browser with version, server, network, time seen with time zone.
    validations:
      required: true
  - type: dropdown
    id: frequency
    attributes:
      label: Frequency
      options:
        - Every time
        - Often (more than half of attempts)
        - Sometimes (less than half of attempts)
        - Seen once, not reproduced
    validations:
      required: true
  - type: textarea
    id: impact
    attributes:
      label: Impact
      description: Who is affected, what they lose, and whether there is a workaround.
    validations:
      required: true
  - type: textarea
    id: evidence
    attributes:
      label: Evidence
      description: Screenshots, a short recording, log lines or a sanitised HAR file.
  - type: textarea
    id: logs
    attributes:
      label: Log output
      description: Paste relevant lines. This is shown as code.
      render: shell

The form adds the bug and needs-triage labels to every issue, but only if those labels already exist in the repository; GitHub skips any that do not. New repositories have bug by default, so create the other one first: open Issues, then Labels, click New label, name it needs-triage and save it.

Commit the file to the default branch, then open Issues and click New issue. Choose Bug report and file Report 2 through the form, pasting each rewritten section into its field and the two log lines from the evidence step into Log output. For Frequency, "4 of 6 attempts" is more than half, so choose "Often", and keep the exact counts in the Steps to reproduce notes so they are not lost.

The form only asks the questions. Read each report before filing it, and when you triage other people's reports, send back the ones with an empty or vague section with a specific question, such as "Which build was this on?", rather than closing them.

Check it worked

Opening a new issue in your repository offers a Bug report choice. In a public repository, trying to submit it with Steps to reproduce empty is blocked; in a private one, the field is still shown with its label and description. Report 2, filed through the form, shows each section under its own heading with the log lines in a code block, and the issue carries the bug and needs-triage labels.

Next steps

You now have three reports that a developer can pick up without asking you a question, and a form that asks for the same facts every time.

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Platform Engineering

Get new tutorials

New tutorials, about twice a month.