As we get more issues and pull requests opened on the GitHub CLI, we've decided on a weekly rotation triage role as defined by our First Responder (FR) rotation. The primary responsibility of the FR during that week is to triage incoming issues from the Open Source community, as defined below. An issue is considered "triaged" when the needs-triage
label is removed.
Review and label open issues missing either the enhancement
, bug
, or docs
label and the label(s) corresponding to the command space prefixed with gh-
, such as gh-pr
for the gh pr
command set, or gh-extension
for the gh extension
command set.
Then, engage with the issue and community with the goal to remove the needs-triage
label from the issue. The heuristics for triaging the different issue types are as follow:
To be considered triaged, bug
issues require the following:
- A severity label
p1
,p2
, andp3
- Clearly defined Acceptance Criteria, added to the Issue as a standalone comment (see example)
Severity | Description |
---|---|
p1 |
Affects a large population and inhibits work |
p2 |
Affects more than a few users but doesn't prevent core functions |
p3 |
Affects a small number of users or is largely cosmetic |
To be considered triaged, enhancement
issues require either
- Clearly defined Acceptance Criteria as above
- The
needs-investigation
orneeds-design
label with a clearly defined set of open questions to be investigated.
To be considered triaged, docs
issues require clearly defined Acceptance Criteria, as defined above
Before removing the needs-triage
label, consider adding any of the following labels below.
Label | Description |
---|---|
discuss |
Some issues require discussion with the internal team. Adding this label will automatically open up an internal discussion with the team to facilitate this discussion. |
core |
Defines what we would like to do internally. We tend to lean towards help wanted by default, and adding core should be reserved for trickier issues or implementations we have strong opinions/preferences about. |
good first issue |
Used to denote when an issue may be a good candidate for a first-time contributor to the CLI. These are usually small and well defined issues. |
help wanted |
Defines what we feel the community could solve should they care to contribute, respectively. We tend to lean towards help wanted by default, and adding core should be reserved for trickier issues or implementations we have strong opinions/preferences about. |
invalid |
Added to spam and abusive issues. |
needs-user-input |
After asking any contributors for more information, add this label so it is clear that the issue has been responded to and we are waiting on the user. |
All incoming pull requests are assigned to one of the engineers for review on a round-robin basis. The person in a triage role for a week could take a glance at these pull requests, mostly to see whether the changeset is feasible and to allow the associated CI run for new contributors.
The primary goal of triaging spam and abuse is to remove distracting and offensive content from our community.
We get a lot of spam. Whenever you determine an issue as spam, add the invalid
label and close it as "won't do". For spammy comments, simply mark them as spam using GitHub's built-in spam feature.
Abusive contributions are defined by our Code of Conduct. Any contribution you determine abusive should be removed. Repeat offenses or particularly offensive abuse should be reported using GitHub's reporting features and the user blocked. If an entire issue is abusive, label it as invalid
and close as "won't do".
In the interest of not letting our open PR list get out of hand (20+ total PRs or multiple PRs over a few months old), try to audit open PRs each week with the goal of getting them merged and/or closed. It's likely too much work to deal with every PR, but even getting a few closer to done is helpful.
For each PR, ask:
- is this too stale (more than two months old or too many conflicts)? close with comment
- is this really close but author is absent? push commits to finish, request review
- is this waiting on triage? go through the PR triage flow
This gist has some useful aliases for first responders:
https://gist.github.com/vilmibm/ee6ed8a783e4fef5b69b2ed42d743b1a
We want our project to be a safe and encouraging open-source environment. Below are some examples of how to empathetically respond to or close an issue/PR: