docs/src/maintain/review-pull-requests.md
Pull requests are submitted frequently and represent our best opportunity to interact with the community. As such, it's important that pull requests are well-reviewed before being merged and that interactions on pull requests are positive.
Anyone, both team members and the public, may leave comments on pull requests.
When a pull request is opened, the bot will check the following:
The bot will add a comment specifying the problems that it finds. You do not need to look at the pull request any further until those problems have been addressed (there's no need to comment on the pull request to ask the submitter to do what the bot asked - that's why we have the bot!).
Once the bot checks have been satisfied, you check the following:
Note: If you are a team member and you've left a comment on the pull request, please follow up to verify that your comments have been addressed.
Any committer, reviewer, or TSC member may approve a pull request, but the approvals required for merging differ based on the type of pull request.
One committer approval is required to merge a non-breaking change that is:
For a non-breaking feature, pull requests require approval from one reviewer or TSC member, plus one additional approval from any other team member.
For a breaking change, pull requests require an approval from two TSC members.
::: important If you approve a pull request and don't merge it, please leave a comment explaining why you didn't merge it. You might say something like, "LGTM. Waiting three days before merging." or "LGTM. Requires TSC member approval before merging." or "LGTM. Would like another review before merging.". :::
When a pull request is created, whether by a team member or an outside contributor, it is placed in the "Needs Triage" column of the Triage board automatically. The pull request should remain in that column until a team member begins reviewing it.
If the pull request does not have a related issue, then it should be moved through the normal triage process for issues to be marked as accepted. Once accepted, move the pull request to the "Implementing" column.
If the pull request does have a related issue, then:
Once the pull request has one approval, one of three things can happen:
When the pull request has a second approval, it should either be merged (if 100% ready) or moved to the "Merge Candidates" column if there are any outstanding concerns that should be reviewed before the next release.
TSC members, reviewers, committers, and website team members may merge pull requests, depending on the contents of the pull request, once it has received the required approvals.
Website Team Members may merge a pull request in the eslint.org repository if it is:
We use the "Merge" button to merge requests into the repository. Before merging a pull request, verify that:
Be sure to say thank you to the submitter before merging, especially if they put a lot of work into the pull request.
Team members may merge a pull request immediately if it:
Otherwise, team members should observe a waiting period before merging a pull request:
The waiting period ensures that other team members have a chance to review the pull request before it is merged.
Note: You should not merge your pull request unless you receive the required approvals.
There are several times when it's appropriate to close a pull request without merging:
In any of these cases, please be sure to leave a comment stating why the pull request is being closed.
If a pull request hasn't been updated in 17 days:
Closing because there hasn't been activity for 17 days. If you're still interested in submitting this code, please feel free to resubmit.
If a pull request submitter isn't willing to follow project guidelines.
Unfortunately, we can't accept pull requests that don't follow our guidelines. I'm going to close this pull request now, but if you'd like to resubmit following our guidelines, we'll be happy to review.