-
Notifications
You must be signed in to change notification settings - Fork 17.8k
CodeReview
minux edited this page Dec 11, 2014
·
21 revisions
Be sure to familiarize yourself with the code review process from the official Contribution Guidelines first.
There are several terms code reviews may use that you should become familiar with.
-
LGTM
— looks good to me: the reviewer approves of your changes as they currently are. The reviewer may suggest minor changes; if so, you can make those changes, and then submit. -
NOT LGTM
— does not look good to me: the reviewer disapproves of your changes entirely. The reviewer will explain why they disapprove of your changes. -
SGTM
— sounds good to me: the reviewer approves of an idea mentioned in the review, but does not approve the changes for commit at this point. -
s/foo/bar/
— The reviewer has requested that you replace the textfoo
withbar
where they have commented. This notation originates from sed syntax. -
s/foo/bar/g
— The reviewer has requested that you replace the textfoo
withbar
throughout your entire change. This notation originates from sed syntax. -
CC=person
— The reviewer has requested thatperson
receive a copy of this review. This often originates from the Go development dashboard. -
R=person
— The reviewer has requested forperson
to review this code before it is committed. This often originates from the Go development dashboard. -
R=close
— The reviewer has requested that you close the review for now. They will explain why they wish for you to close the review. -
TBR=person
— This does not appear in code reviews themselves, but may appear in commit messages. In this case, the committer has requested thatperson
review this code as soon as possible, but the change is considered acceptable to be committed immediately.
Messages from a code review are typically sent to three places:
- the reviewers, if any
- the golang-codereviews group
- the owner
Please do NOT reply code review via email, as the message will not be relayed to Gerrit. Always click on the link and post reply in Gerrit.
The code review command git-review
currently does not work on Windows. This is #9257.