-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: formalized '1 approval' and 'team assigned' labels #9861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
dccfa23
aa7f2c8
3abac14
3d8a2f5
cf6da79
04e532e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ Open pull requests ideally switch between two states: | |
- Ready for review: either newly created or after [review is re-requested](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#re-requesting-a-review) | ||
- Waiting for author activity: either by virtue of [being a draft](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests) or having the [`awaiting response` label](https://github.com/typescript-eslint/typescript-eslint/pulls?q=is%3Apr+is%3Aopen+label%3A%22awaiting+response%22) | ||
|
||
Add the `awaiting response` label to a PR whenever you post a review. | ||
Add the `awaiting response` label to a PR and remove `1 approval` if it exists whenever you post a request for changes. | ||
It will be automatically removed if the author re-requests review. | ||
|
||
### Be Kind | ||
|
@@ -66,9 +66,6 @@ If there's no backing issue: | |
- If the PR is a straightforward docs or tooling fix that doesn't impact users, it's ok to review it as-is | ||
- Otherwise, add the `please fill out the template` label and post a comment like the _Needs Issue_ template | ||
|
||
Upon completing your review, if the build is passing and you feel comfortable merging it in, go ahead and squash merge. | ||
Otherwise, add the `1 approval` label. | ||
|
||
#### Common Things to Look For | ||
|
||
- Style: that can you read through the code easily, there are comments for necessary tricky areas, and not unnecessary comments otherwise. | ||
|
@@ -111,6 +108,21 @@ For preliminary reviews, be clear with what scale you're reviewing at: _"Reviewi | |
For repeat reviews, be clear when it's something you missed earlier and/or there's new information. | ||
Don't apologize if the missed information was only made clear because of requested changes - this is part of the review process! | ||
|
||
### Approvals | ||
|
||
If the PR addresses a time critical task, such as a security fix or `main` branch build break, go ahead and squash merge it. | ||
|
||
Otherwise, upon completing your review, if the build is passing and you have no blockers, approve it on GitHub. | ||
Then: | ||
|
||
- If there isn't a `1 approval` label or existing approval, add the `1 approval` label | ||
- If there's already `1 approval` and/or it's been a week since the last request for changes, go ahead and squash merge | ||
- For straightforward PRs that don't impact users, you can wait 3 days instead | ||
JoshuaKGoldberg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
There's no need to reset waiting periods for minor fixups from code reviews of otherwise approved code. | ||
|
||
We try to leave PRs open for at least a week to give reviewers who aren't active every day a chance to get to it. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made this a bit more clear/precise: it's a week in review, not a week since approval. IMO no need to wait a week after approval for something that's already been open for a bit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, good call on clarifying that. That's a better approach than what my understanding was! 👍 |
||
|
||
### Other States | ||
|
||
#### External Blockers | ||
|
Uh oh!
There was an error while loading. Please reload this page.