Skip to content
Open {re}Source

    Open {re}Source

    How to Write a Bug Report That Gets Fixed

    Module 03 of 10Chapter 03 of 07

    Part of a free guide to open source. Each module stands on its own.

    Published
    2026-09-27
    Updated
    2026-10-03
    Reading time
    7 min

    A bug report gets fixed when a maintainer can see the bug fail on their own machine in a minute. That takes a link to a minimal reproduction, what you expected next to what happened, and the versions. Your theory about the cause is optional, and the word “urgent” never helps.

    The examples come from Bootstrap, which Julien maintains, and Vite. Both close reports they can’t reproduce:

    Sept. 2025 to Sept. 2026 Bootstrap Vite
    Issues opened 184 689
    Closed as “not planned” 70 89
    Labeled as missing a reproduction 4 35

    Bootstrap’s label is needs-example, and it closes issues labeled awaiting-reply after 14 days without an answer. Vite’s is needs reproduction, and it closes those after 3 days without activity: 21 of the 35 went that way (as of September 2026). “Not planned” also covers questions, duplicates and ideas the project turned down.

    Section 01 of 10

    Search closed issues and try the latest version first#

    The bug you hit has often been reported, and often fixed. Before you write:

    • Search closed issues too. The issues tab filters on is:open by default: remove it. Paste the error message in quotes.
    • Try the latest release, and the main branch if you can build it: Bootstrap’s CONTRIBUTING.md asks you to check main. If the bug is gone, you’re done.
    • If the issue exists, add what’s new. A reaction (👍) says “me too” without notifying anyone. Comment only with something that helps: another version, another browser, a smaller reproduction.

    Questions aren’t bugs. “How do I…” goes where the project says, often GitHub Discussions or a chat: Bootstrap’s new issue page sends them to Discussions.

    Section 02 of 10

    The reproduction is the report#

    A maintainer’s first job with a report is to see the bug. If they can’t, nothing else in the report matters. Bootstrap’s template makes a reduced test case a required field, and labeling an issue needs-example posts this comment:

    Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case on CodePen or StackBlitz and report back with your link, Bootstrap version, and specific browser and Operating System details.

    Vite’s version adds a deadline: “Issues marked with needs reproduction will be closed if they have no activity within 3 days.”

    Start from the project’s own starter, not from your app. Bootstrap links a CodePen template with Bootstrap loaded; vite.new opens a Vite project on StackBlitz. For a library with neither, a new repository with the smallest program that fails, and the command that shows it, does the same job.

    Then reduce: remove code until the bug disappears, put back the last thing you removed, and stop. danneu did that for twbs/bootstrap#41578, starting from the spinner example in Bootstrap’s docs:

    <div class="d-flex align-items-center">
    	<strong>Loading...</strong>
    	<div class="spinner-border ms-auto"></div>
    </div>

    One change, a label long enough to wrap, and the spinner turns into an ellipse. The report had both snippets, a screenshot and a CodePen. Three people answered with three fixes, and the one merged was mdo’s idea: flex-shrink: 0 on the spinner.

    Another trick, from twbs/bootstrap#42007: show the same page without the library. The reporter added a screenshot of the date field without Bootstrap’s CSS, aligned, which proves the bug is Bootstrap’s and not the browser’s.

    Section 03 of 10

    Expected, actual, and when it started#

    BiggerNoise’s report for twbs/bootstrap#41379 fits on one screen. It says what should happen (1), what happens instead (2), since when (3), and links the demo (4):

    Bootstrap issue 41379: expect the popover to stay open, actually it closes, this is new in 5.3.4, and a CodePen link.

    “This is new in 5.3.4” is the most useful line in the report. It turned “find the bug” into “compare two releases”. Julien answered the same day with the commit that caused it:

    Julien's reply: the behavior changed between v5.3.3 and v5.3.4, and appears to come from commit fecd219.

    Another contributor opened the fix, merged seven weeks later. If you know the last version that worked, say it. If you don’t, installing two or three older versions to find out takes less time than waiting for someone to ask.

    The versions go in too: the project’s, and whatever runs it (browser and OS for a CSS library, Node.js or Python for a tool). Your package manager gives the installed version, not the one your manifest asks for: npm ls <package>, pip show <package>, cargo tree -i <crate>. npx envinfo --system --browsers prints the rest in one block.

    Section 04 of 10

    Keep your guesses for the end#

    The title names the symptom: “Popovers always close when trigger is set to ‘hover click’”. Not your theory (“Event listener bug in popover.js”), not a mood (“Popovers are broken, please fix”). The maintainer will search for the symptom next month, when someone reports it again.

    • Your guess about the cause goes last, under its own heading, labeled as a guess. If it’s right, it saves time. If it’s in the title, it sends everyone the wrong way.
    • Paste text, not pictures of text. Error messages and logs as text can be searched and copied. Put a long log in a <details> block so the report stays readable.
    • Screenshots and videos are for what you see: a layout, an animation, a focus that jumps.
    • Leave out “urgent”, “production is down” and your company’s name. Nobody on the project owes you a deadline. If you need one, the project may sell support; the issue tracker doesn’t.

    Section 05 of 10

    After you post, stay around#

    The report isn’t done when you click Submit:

    • Answer questions within a few days. The bots above don’t wait longer, and a maintainer who asked is looking at your issue now, not in a month.
    • When someone links a fix, test it if you can, and say so. “Fixed for me with the branch from #41511” moves a pull request forward.
    • If you find the cause was your own code, say what it was and close the issue yourself. The next person with the same symptom will find your answer.

    If nobody answers for weeks, ask once, politely. The same rules apply to issues as to pull requests.

    Section 06 of 10

    A feature request starts with your problem#

    Bootstrap’s feature request template has two fields: Proposal and Motivation and context. The second one decides. “Add a size option to the tooltip” is a solution; “Tooltips cover the input they describe on small screens” is a problem, and the maintainers may know a better fix than yours.

    • Say what you tried, and why it didn’t work: the workaround you’re using is evidence.
    • Say who else needs it. Link the Stack Overflow question with 200 votes, not “a lot of people”.
    • Offer to write it, if you can. A request with a volunteer attached gets a different answer.
    • Be ready for “no”. Every feature is code someone maintains for years, and saying no to features is a big part of a maintainer’s job.

    Some projects want ideas in Discussions first, and turn them into issues once they’re accepted. CONTRIBUTING.md says.

    Section 07 of 10

    Security bugs never go in an issue#

    A public issue about a vulnerability is a how-to for attackers until the fix ships. Look for a SECURITY.md, at the root or in .github/, and follow it:

    • Bootstrap’s says to email security@getbootstrap.com with “SECURITY” in the subject, and aims to answer within three business days.
    • Many projects, Bootstrap included, also turn on GitHub’s private vulnerability reporting: a Report a vulnerability button in the repository’s Security tab.
    • If the project has neither, open an issue asking for a private contact, without any detail about the bug.

    Section 08 of 10

    A template to copy#

    Use the project’s template when it has one: it asks for what its maintainers need. When it doesn’t, this covers the rest:

    <!-- Title: the symptom, e.g. "Popover closes on mouse leave when trigger is 'hover click'" -->
    
    ### What happens
    
    Steps:
    
    1.
    2.
    
    Expected:
    
    Actual:
    
    ### Reproduction
    
    <!-- A CodePen, StackBlitz or repository link, and the command that shows the bug -->
    
    ### Versions
    
    - <project>: <version> (last version that worked: <version or "don't know">)
    - OS, browser or runtime:
    
    ### Logs
    
    <details>
    <summary>Full error</summary>
    
    <!-- paste the error as text -->
    
    </details>
    
    ### Notes
    
    <!-- Your guess about the cause, labeled as a guess. Workarounds you found. -->

    Section 09 of 10

    Do this now#

    • Search open and closed issues for the error message, in quotes.
    • Reproduce the bug on the latest release.
    • Build a reproduction from the project’s starter, and reduce it until removing anything makes the bug disappear.
    • Write expected and actual, and the last version that worked if you know it.
    • Add the versions of the project and of what runs it.
    • Check the title names the symptom, then post, and look at the issue again in two days.

    Section 10 of 10

    Go further#

    Guide contents

    10 modules, 47 chapters. Each module stands on its own.

    1. 01What Is Open Source?6 chapters
      1. 00Overview
      2. 01Definition of Open Source
      3. 02Brief History of Open Source
      4. 03The Significance of Open Source
      5. 04Ten Successful Projects and What to Steal From Them
      6. 05The Many Shapes of Open Source
      7. 06Benefits of Open Source
    2. 02Getting Started5 chapters
      1. 00Overview
      2. 01Source Code Hosting Platforms: GitHub and the Alternatives
      3. 02Finding Open-Source Software to Use
      4. 03Reading a Repository in Five Minutes
      5. 04Open Source Etiquette: Talking to Strangers Who Owe You Nothing
      6. 05Git and GitHub Basics You Actually Need
    3. 03Contributing7 chapters
      1. 00Overview
      2. 01Finding a Project to Contribute To
      3. 02Your First Contribution, Step by Step
      4. 03How to Write a Bug Report That Gets FixedYou are here
      5. 04Non-Code Contributions Maintainers Actually Want
      6. 05Getting Involved in the Open Source Community
      7. 06Building a Portfolio with Open-Source Contributions
      8. 07Overcoming Challenges in Open-Source Contributions
    4. 04Creating5 chapters
      1. 00Overview
      2. 01Choosing a Project Idea
      3. 02Planning Your Project
      4. 03Creating Your Project
      5. 04The Files That Turn a Repository Into a Project
      6. 05Community From Day One
    5. 05Licensing & Legal6 chapters
      1. 00Overview
      2. 01Choosing a License: Four Questions and a Table
      3. 02License Compatibility: What You Can Combine, and the Tools That Check
      4. 03Relicensing: The Source-Available Wave, and the Forks That Answered
      5. 04CLA or DCO: What You Sign When You Contribute
      6. 05Licenses for Things That Aren't Code: Docs, Fonts, Hardware, Data and Models
      7. 06Trademarks, Names and Logos: What Your License Doesn't Cover
    6. 06Maintaining9 chapters
      1. 00Overview
      2. 01What a Maintainer Actually Does
      3. 02Saying No: Five Replies That Keep Contributors Coming Back
      4. 03Reviewing Pull Requests: What to Check, What to Say, When to Close
      5. 04Running a Community Without It Running You
      6. 05Governance: Who Decides, and How to Write It Down
      7. 06Security for Maintainers: Before, During and After the First Report
      8. 07AI Crawlers and Your Project's Infrastructure
      9. 08Managing Project Dependencies
      10. 09Burnout, Succession and the End of a Project
    7. 07Promoting2 chapters
      1. 00Overview
      2. 01Introduction to Project Promotion
      3. 02Building a Strong Project Identity
    8. 08Financing3 chapters
      1. 00Overview
      2. 01Importance and Challenges of Financing Open-Source Projects
      3. 02Understanding Funding Models
      4. 03Effective Fundraising Strategies
    9. 09Open Source at Work2 chapters
      1. 00Overview
      2. 01License Compliance at Work: The Policy, the Notices and the SBOM
      3. 02Vulnerabilities in What You Ship: Triage, Upstream Fixes and the CRA
    10. 10Open Source & AI2 chapters
      1. 00Overview
      2. 01AI-Assisted Contributions: Write the Policy Your Project Needs
      3. 02Contributing with AI Tools Without Annoying Maintainers