summaryrefslogtreecommitdiffstats
path: root/Documentation/user-suggest-edits.txt
blob: 99f17a416b67abf1ec0cd0a96e154e7f93ca73cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
= Gerrit Code Review - User suggested edits (Experiment)

Easy and fast way for reviewers to suggest code changes that can be easily applied
by change owner.

== Reviewer workflow

** Select line or multiple lines of diff and start comment

image::images/user-suggest-edits-reviewer-comment.png["Comment example", align="center", width=400]

** Click on suggest fix - that copies whole selected line/lines

image::images/user-suggest-edits-reviewer-suggest-fix.png["Comment example", align="center", width=400]

** Modify lines in the suggestion block. Optionally add more details as normal comment text before or after
the suggestion block.

image::images/user-suggest-edits-suggestion.png["Suggestion example", align="center", width=400]

** Optionally you can preview suggested edit by clicking on Preview fix when you stop editing comment

image::images/user-suggest-edits-reviewer-preview.png["Suggestion Draft example", align="center", width=400]

image::images/user-suggest-edits-preview.png["Suggestion Preview", align="center", width=400]

== Author workflow

You can apply one or more suggested fixes. When suggested fix is applied - it creates
a change edit that you can modify. link:user-inline-edit.html#editing-change[More about editing mode.]

GERRIT
------
Part of link:index.html[Gerrit Code Review]

SEARCHBOX
---------