-
Notifications
You must be signed in to change notification settings - Fork 18
Updated code review guidelines #376
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 1 commit
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 |
---|---|---|
|
@@ -115,33 +115,16 @@ These reviews are required for the changes to be merged to `master`. | |
You can tag additional teams or individuals for review as you see fit, including `@dept-design` for | ||
any design changes. | ||
|
||
</Bitwarden> | ||
|
||
### Opening the PR for review | ||
|
||
As its name implies, marking a PR as "Ready for Review" indicates that you are ready for all | ||
assigned teams to review it. If the changes are still in progress, leave the PR in `Draft` status. | ||
Doing this ensures that reviewers can act on the "Ready for Review" as their signal to begin the | ||
review process without further notification. | ||
|
||
### Addressing feedback | ||
|
||
It is likely that you will receive some feedback on your PR. You should see this as a positive thing | ||
-- it signifies a healthy and thorough review process and an organizational commitment to code | ||
quality. You may receive [comments](./code-review.md#comment) or a | ||
[request for changes](./code-review.md#request-changes). You are encouraged to engage in | ||
conversation on the PR to discuss a solution, but if any strong conflicting opinions arise it is | ||
often best to move the conversation to a synchronous format to avoid any misunderstanding. | ||
|
||
When any necessary changes have been made, you should address the comments or request for changes by | ||
responding in the PR conversation thread. You are not responsible for resolving the conversation -- | ||
that is the prerogative of the reviewer, to ensure that they agree that the question or concern has | ||
been addressed. | ||
|
||
**When you are ready for a reviewer to revisit your changes, you should request a re-review.** This | ||
will notify the reviewer and ensure a prompt response. | ||
|
||
</Bitwarden> | ||
|
||
## Reviewing the pull request | ||
## Managing the review process | ||
|
||
<Bitwarden> | ||
|
||
|
@@ -199,7 +182,24 @@ that may delay this process. | |
|
||
</Community> | ||
|
||
### How to perform a review | ||
### Addressing feedback | ||
|
||
It is likely that you will receive some feedback on your PR. You should see this as a positive thing | ||
-- it signifies a healthy and thorough review process and an organizational commitment to code | ||
quality. You may receive [comments](./code-review.md#comment) or a | ||
[request for changes](./code-review.md#request-changes). You are encouraged to engage in | ||
conversation on the PR to discuss a solution, but if any strong conflicting opinions arise it is | ||
often best to move the conversation to a synchronous format to avoid any misunderstanding. | ||
|
||
When any necessary changes have been made, you should address the comments or request for changes by | ||
responding in the PR conversation thread. You are not responsible for resolving the conversation -- | ||
that is the prerogative of the reviewer, to ensure that they agree that the question or concern has | ||
been addressed. | ||
|
||
**When you are ready for a reviewer to revisit your changes, you should request a re-review.** This | ||
will notify the reviewer and ensure a prompt response. | ||
|
||
## Performing a review | ||
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. This also doesn't fit in with the rest of the page, I recommend it's moved to a callout, maybe at the top of the page. That keeps this page wholly directed at the PR author. 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. This is directed at the author, is it not? This is telling the PR author to re-request reviews from their reviewers when they have made all requested changes. 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. Sorry, Github is showing additional lines as context which is confusing. This is referring to the 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. I see this now, thank you. I've added a callout in |
||
|
||
We've written up some [guidelines](./code-review.md) for reviewing code, which we recommend reading | ||
before performing your first code review. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest this section is moved to or integrated with
code-review.md
. It describes the expectations the company has about the review process, including expectations of the reviewer, whereas the rest of this page is more of a how-to guide for the PR author. This change in tone and focus is probably the source of the confusion.You could mention it briefly here, like "You should receive a review or at least first contact from the reviewer within 2 business days of marking the PR as ready for review. If you don't hear anything within this time, it is acceptable (and expected) that you reach out to the reviewer via Slack." Then you could have a callout, e.g. "See [Code Review] for more information about the code review process."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it's confusing, and I've struggled with the separation between the "Pull Requests" and "Code Review" content for a while, and with each change I make in this area.
Do you think it would be more helpful to extract all of the review content (from the author and the reviewer perspective) into the "Code Review" page? It feels like the author / reviewer separation might be artificial and make the documentation confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would also work - this page steps you through the process of branching, committing, and submitting the PR, and then you direct the reader to the Code Review page for next steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've taken your suggestion to extract that section into the "Code Review" page. I think it reads much more clearly now - thank you so much for the suggestion!