Creating and Editing Reviews¶
Creating Reviews¶
Adding comments on diffs or file attachments will immediately create a new review if one doesn’t already exist. Once a review is created, a review draft banner will show on the page.
Blank reviews can also be created without having to first add a comment. This can be useful if you have a generic comment about the change, rather than one specific to diffs or other files.
To create a new, blank review, click Review on the review request actions bar.
Editing Reviews¶
Clicking the Review button on the review request action bar, or clicking Edit Review on the review draft banner will display the review dialog, showing the entire contents of your draft review.
In this dialog, you can add a summary for your review, approve it for shipping, manage comments, and write text to appear at the top and bottom of your review. Toggling a checkbox or pressing OK on a text field will instantly save those changes, so you don’t have to worry about losing your work if you close the page.
The bottom of the dialog have the following buttons:
Add General Comment will add a general comment, which is not bound to any diff or file, to the review.
Publish Review will save any comments you have made on your review and immediately publish your review. See the documentation there on publishing options.
Discard Review will immediately discard your draft review, deleting all new comments you’ve made on that draft. This cannot be undone!
Close will close the review dialog.
Writing a Header¶
The top of the dialog contains a Header field, which is a free-form text field that lets you write some text that will appear before any comments in your review. This is a good place to provide a summary of your review or to provide general feedback (maybe something encouraging). This field supports Markdown text.
Unlike a comment, you won’t be able to file an issue with your header text. However, like a comment, people will be able to reply to it. If you want a comment not tied to a diff or file that allows for issue tracking, you’ll want to create a general comment.
Editing Comments¶
After the header, the review dialog will list all the comments you’ve filed on the review request. These will cover general comments, comments on diffs, and comments on file attachments.
Existing comments can be edited by clicking the comment text or pencil icon, entering new text, and clicking OK.
You can also change the issue tracking options here. These changes will be instantly saved.
Deleting Comments¶
New in version 3.0.
If you realize a comment doesn’t make sense on the review, you can delete it by clicking the trash can icon and confirming that you want to remove the comment. The comment will then be permanently removed from the review.
Adding General Comments¶
New in version 3.0.
General comments can be added directly in the Review Dialog by clicking Add General Comment at the bottom-left of the dialog. This will create a new comment entry, which you can fill out and save by clicking OK.
The list of general comments will appear at the top of the review, much like the review’s header. Unlike the header, you can have as many general comments as you want, and they all support issue tracking.
Note that these are not intended for reviewing actual code or files. They’re comments that apply to the review or task as a whole.
Adding Diff/File Attachment Comments¶
Comments on diffs and file attachments are shown in the review dialog, but cannot be added within the dialog. To leave comments on those, see Reviewing Diffs and Reviewing File Attachments.