Guide
GitHub Issue Forms: Install and Review
To add a GitHub issue form, save a YAML form under .github/ISSUE_TEMPLATE/ on your repository’s default branch, then open Issues → New issue to select it. The form asks for a reproducible observation, and the submitted answers appear as Markdown in the issue body. Try it in a test repository first.
Last updated:
How do you add a bug-report form to your repository?
Download one of the YAML presets below, save it as .github/ISSUE_TEMPLATE/bug-report.yml on your repository’s default branch, then open Issues → New issue to select it. The form asks for a reproducible observation; the submitted answers appear as Markdown in the issue body. GitHub documents the template location and default-branch requirement and the form-to-issue format.
- Choose the builder preset for a product bug or the agency preset when the affected site or project must be named. Download
bug-report.yml; both buttons use the same form generator as the issue-template builder. - Inspect the downloaded YAML, then commit it at
.github/ISSUE_TEMPLATE/bug-report.ymlon the default branch. Ensure repository Issues are enabled. - Open the form in a test repository. In a public repository, try an empty required field and then a completed report; inspect the resulting issue body. GitHub’s schema documents required-field submission checks for public repositories. Test private-repository behavior separately.
A YAML issue form defines inputs and validations.required. A Markdown .md issue template gives reporters written prompts; “required” in its text does not enforce an answer. Both live under .github/ISSUE_TEMPLATE/. Pull-request templates have a separate setup. Use the builder when you need to select fields or download Markdown; this guide covers installing and maintaining the form.
Collect reports on your own site with ContextCapture
ContextCapture adds a bug report widget to your website. Testers send a screenshot, their environment and their notes from the page, reports save to your inbox and, when the site’s destination is GitHub, open as issues in the repository you pick.
Use the same evidence habits on your own site: testers report from the live page, and each report saves to your inbox.
Read one small form definition
This original minimal example shows how a visible question maps to YAML. It is a teaching form, separate from the fuller downloadable presets. GitHub’s issue-form configuration guide shows the name, description, and body structure; its schema defines textarea attributes and public-repository required validation.
name: Bug report
description: Report a repeatable failure
body:
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Include the starting state and each action.
validations:
required: trueSave it as .github/ISSUE_TEMPLATE/bug-report.yml in a test repository to try it. This one-field form omits expected result, actual result, and environment; use the builder or presets above for a useful team report.
Choose fields a reporter can answer
Builder: checkout failure
A shopper clicks Pay on the checkout page and nothing happens. Ask for the page and browser, the exact steps from cart to Pay, the expected confirmation, the observed result, and a reviewed screenshot or console error.
In a public test repository, leave a required field empty and check that submission is blocked; then complete a test report and inspect its issue body. Test required-field behavior separately in a private repository before relying on it.
Agency or QA: client staging regression
A tester sees a contact form fail only on the client’s staging release in mobile Safari. Put the tested release and client impact in the summary, then add the browser, viewport, repeatable steps, expected confirmation, and actual error. Review screenshots for client or customer details before attaching them.
In a test repository, have another tester follow the steps and inspect the resulting issue body. Check required-field behavior for that repository, then remove optional fields that do not help triage.
The presets require a summary, steps, expected result, and actual result; the agency preset also requires the affected site or project. Browser, viewport, console text, and screenshot fields are optional. Keep only questions that help another person repeat the failure. For help writing the actions, use the reproduction-steps guide.
Read the submitted issue, not just the form preview
Synthetic settings-save example
A reporter completes the builder form for a test settings page. The resulting issue body should let a reviewer connect each labeled answer to a specific question:
- What happened? “Notification setting does not save” gives a short observation and impact.
- Steps to reproduce: “Open test settings, switch email alerts off, press Save, then reload” gives a repeatable sequence.
- Expected behavior / Actual behavior: “Alerts stay off” versus “the switch returns to on after reload” separates the intended result from what was seen.
- Browser and version / Viewport size: “Chrome (version not recorded) / 1280 × 720” records the known context. Leave unknown details unknown rather than guessing.
A reviewed screenshot or console excerpt can support this report, but neither proves the cause. For a single completed report, use the bug-report generator; the sample report shows a broader evidence handoff.
How do you test that the required questions produce usable answers?
In a public test repository, leave the required Steps to reproduce field empty and confirm GitHub prevents submission, then complete it with the synthetic settings-save sequence and inspect the resulting issue. GitHub’s issue-form schema documents required-field validation for public repositories. The check proves the field is filled, not that the steps are repeatable. Ask a second reviewer to follow the steps without verbal help; if they cannot, clarify the starting state or action prompt in the YAML.
Repeat that review after changing field labels or order, because those labels become headings in the submitted issue body. For private repositories, verify behavior in that repository rather than assuming the public-repository validation applies.
Maintain the form after installation
- If the form is missing, check the exact folder and
.ymlextension, default branch, Issues setting, and GitHub’s validation errors. GitHub requires a template name longer than three characters and unique among issue templates; see its configuration rules. - When editing YAML, keep every field
idunique and each label useful. If you add default labels, create those labels in the repository first; the downloaded presets do not set labels. Check GitHub’s form schema for fields outside this builder’s input-and-textarea subset. - Review a test issue after each change. Can a colleague follow the steps, identify expected versus actual, and see the tested environment? Remove secrets, customer details, and private URLs from example reports before sharing.
These downloads pass the builder’s local checks for its supported fields; only GitHub can accept the file in a particular repository. GitHub describes issue forms as a public preview, so recheck its syntax when changing fields. Updated October 21, 2026; the guide was originally published October 8, 2026.
Examples for your team
Builder example
A maintainer installs a bug form in .github/ISSUE_TEMPLATE and inspects a test issue for usable reproduction details.
Start your 14-day free trialAgency / QA example
An agency adapts the staging-report preset, then checks whether another tester can follow the submitted steps.
Start your 14-day free trial