Issue Management
This document serves as a guide for how you might manage issues, also known as issue triaging.
Use your best judgement when triaging issues, and most of all remember to be kind, friendly, and encouraging when responding to users. Many users are new to open source and/or typed linting. It's imperative we give them a positive, uplifting experience.
If you're ever unsure on any part of issue management, don't hesitate to loop in a maintainer that has more context to help!
Issue Flow
We include a set of common responses to issues in .github/replies.yml
, intended to be used with the Refined Saved Replies extension.
Don't treat these as exact responses you must use: they're just a starting copy+paste helper.
Please do adopt your specific responses to your personal tone and to match the thread for non-straightforward issues.
Issues pending triage are searchable the triage
label.
That label is added automatically when a new issue is created.
Most issues go through the following review flow when created or updated:
- A maintainer ensures the issue is valid:
- If the poster didn't fill out an appropriate template with enough information:
- Add the
please fill out the template
andawaiting response
labels - Ask the poster for more information using a Needs More Info response
- Add the
- If it's a duplicate of an issue that already exists:
- Add the
duplicate
label and remove thebug
label - If it's an obvious duplicate, post a Clearly Duplicate Issue response
- If it's not an obvious duplicate, link to the existing issue and explain why
- Add the
- If the code is working as intended:
- Add the
working as intended
label and remove thebug
andtriage
labels - If the behavior is due to the user doing something wrong, such as an incorrect config:
- Add the
fix: user error
label - This issue search has some examples of closing comments
- Add the
- If the behavior is otherwise expected, this issue search has some examples of closing comments
- You needn't go into too much detail in your comment - just enough to explain it
- Add the
- If the poster didn't fill out an appropriate template with enough information:
- If the report is valid, add the
accepting prs
label and remove thetriage
label - If you know the rough steps for a fix, consider writing a comment with links to codebase to help someone put together a fix
- If you think that the fix is relatively straightforward, consider also adding the
good first issue
label
Whenever an issue is waiting for the reporter to provide more information, it should be given the awaiting response
label.
When more information is provided:
- If you have time to go through the triage flow again, do so
- If you don't have time, add the
triage
label and remove theawaiting response
label
If your link is both a "permalink" (includes a commit hash instead of a branch name) and has a line number/line range then GitHub will embed the code in your comment.
When viewing a file in GitHub pressing y
will update the URL to a "permalink" with the current commit hash, then you can select the relevant lines and paste that URL into the comment.
Determining Whether Code is Working As Intended
As you become more familiar with the codebase and how everything works, this will be easier to do intuitively, but to begin with, this will likely involve investigating the documentation, code, and tests to determine if it's a bug or working as intended. In general, if there is a passing test or documented example that is the same as or similar to the repro code — that indicates it's working as intended. If you can't find anything that matches, use your best judgement based on the spirit of the code.
Looking for Duplicates
It's worth noting that, occasionally, a user will intentionally raise a duplicate issue because they feel the original issue was closed when it shouldn't have been. If this is the case, you should read the original issue to gather context, understand the reason for it being closed, and determine if the new issue raises any new or relevant point that requires addressing.
Skipping Steps
As you become more familiar with the codebase and how it's supposed to behave you'll be able to skip steps or do things out of order as you see fit. For example, you may be able to identify if a bug report is "working as intended", or you might recognize an issue as a duplicate without having a completely filled-out issue. In such cases you can forgo the back-and-forth and just skip to the closing steps.
Specific Issue Types
🐛 Bug Reports
🐞 "Simple" Bugs
A simple bug is a bug that can be reproduced in a single TS file plus an ESLint config (and possibly a TSConfig) - i.e. an issue reproducible on https://typescript-eslint.io/play. The vast majority of bug reports fall into this category.
If you cannot reproduce the issue as described using the issue's provided playground reproduction, it has not provided enough information. Consider using a specific response like the Needs Playground Reproduction response.
🦟 "Complex" Bugs
A complex bug is a bug that requires multiple files to reproduce. This is the rarer case, but does happen when people are using library types or if there are issues when types are imported.
These bugs should be reported with a link to a GitHub repository that can be checked out to reproduce the issue. If you cannot reproduce the issue as described using repository's README.md and issue description, it has not provided enough information. Consider using a specific response like the Needs Full Reproduction response.
✨ Rule Enhancements
TODO: This will be filled out... soon!
🚀 New Rules
TODO: This will be filled out... soon!