Review
Comments, threads and draft review
5 min read
In Versora's review, you comment directly on the diff line. Each comment can go into a draft review, which gathers everything and publishes it at once with a summary and the verdict, or be published right away with Comment now. Threads appear below the line, on the Changes tab, and in the timeline of the Overview tab.
- MR review › Changes tab › choose the file › + button to the left of the line ("Comment on this line").
The + exists on every diff line, on both sides of the side-by-side view: the new line (green), the removed one (red) or a context line.
- On the Changes tab, open the file.
- Click the line's +. The "Comment on line 42…" box opens right below it.
- Write the comment in Markdown. To propose code, use Suggest change (see Suggestions).
- Choose:
- Start review (or Add to review, if there are already pending comments): saves the comment in the draft review. It's the main action: Ctrl+Enter does it.
- Comment now: "Publishes just this comment, right away".
- Cancel or Esc close the box. The text is kept: when you reopen the box on the same line, it comes back.
| Button | What it does |
|---|---|
| Start review / Add to review | "Saves the comment; they're all published together when you finish the review". |
| Comment now | Publishes just this comment, without waiting for the review. |
| Suggest change | Inserts a suggestion block with the line's current content. |
| Cancel | Closes the box. |
A review with many comments is better published at once: your teammates get a single notification, with the summary and the verdict. Saved comments appear with the Pending chip and "goes out with the review", each with the Delete button. The review header shows "2 pending comments" and the Finish review (2) button.
Where the draft is kept depends on the service:
| GitLab | GitHub | |
|---|---|---|
| Where drafts are kept | On the server, as GitLab review drafts ("Drafts stay on GitLab until you finish the review"). | In Versora, on this computer ("The review stays in the app until you finish it"). They are still there after you close the app. |
| General comment as a draft | Yes: Add to review in the general box. | No: on GitHub, the batch review applies to line comments. |
| Reply as a draft | Yes: Add to review in the reply box. | No. |
| Review started in the browser | — | The pending comments you started on the GitHub page go along when you finish. |
To publish, see Finishing the review and approving.
Caution
On GitHub, the batch review goes entirely onto the pull request's current head. When commenting on an old commit or a version (see Commits and versions), use Comment now: the comment stays on that commit.
At the end of the Overview tab, the "Write a comment…" box comments on the MR as a whole: Comment publishes right away; on GitLab, Add to review saves it as a draft. See Overview tab.
Each thread has the buttons:
| Button | What it does | Service |
|---|---|---|
| Reply | Opens the "Reply…" box with Reply (publishes) and, on GitLab, Add to review ("Saves the reply as a draft; it's published along with the review"). | both (on GitHub, only on line comments) |
| Quote | "Quotes this comment in the comment box": copies the text, with > on each line, into the general box. | GitHub, on general comments |
| Resolve thread / Unresolve thread | Marks the thread as resolved, or reopens it. A resolved thread appears collapsed, with "Thread resolved by Ana · 3 comments". | GitLab |
On the Changes tab, threads sit below the line they belong to. Besides those:
- Show 2 threads from earlier versions of this file (or Hide…): threads made on a version of the file that has changed since then.
- "Comments on lines outside the hunks shown:": threads on lines the current diff doesn't show.
- With the comment filter on, a bar warns "Filter on: 2 threads hidden" with Clear filter. See Filtering comments and bots.
On GitLab, paste an image (a screenshot, for example) into any comment box in the review with Ctrl+V:
- Copy the image to the clipboard.
- Click the comment box and press Ctrl+V.
- At the cursor position a temporary placeholder appears with "Uploading captura.png…" (a pasted screenshot without a name appears as "image"), and the bar shows "Uploading the image…". You can paste several images at once.
- When the upload finishes, the placeholder becomes the image's Markdown, already pointing to the file in the project.
It accepts PNG, JPEG, GIF and WebP, up to 10 MB. GitHub has no API for this: there, the app warns "GitHub has no API to upload images to comments: attach the image in the browser." Pasting text keeps working on both.
Nothing in the local repository. Comments, GitLab drafts, replies, resolutions and images go through the server API. The pasted image is uploaded to the project on GitLab (project upload) before it goes into the text.
- A draft that hasn't been published yet goes away with Delete.
- A published comment stays on the server: edit or delete it from the MR page.
- A resolved thread comes back with Unresolve thread.
- The app's Ctrl+Z doesn't act on the review.
- "Write the comment.": the text is empty.
- "GitLab rejected the comment on this line (HTTP 400): it may not be part of the current diff. Refresh the review and try again.": the MR changed and the line left the diff.
- "The thread no longer exists on the server (404): it may have been deleted. Refresh the review.".
- "The draft no longer exists on the server (404), or this GitLab version doesn't support draft reviews.": publish with Comment now.
- "On GitHub you can only reply to line comments; use the general comment.".
- "On GitHub, resolve the thread on the pull request page.".
- "Wait for the comparison to finish loading to comment.": the diff of the commit or version is still arriving.
- "captura.png is over 10 MB: it wasn't uploaded.", "GitLab refused the image because it's too large.", "The pasted content isn't a PNG, JPEG, GIF or WebP image." and "The server accepted the image but didn't return its address.": problems uploading the image; the placeholder is removed from the text.
None in the app. What can be commented on, resolved and published depends on the project's permissions on the server.