Set copyAllScoresOnTrivialRebase for Code-Review by default
For the Code-Review label most users expect that the scores are copied on trivial rebase, hence this should be the default. Change-Id: I943b4ab15b86aa54de5ddeb4eb7f8bb969acfa0e Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -243,7 +243,7 @@ patch set and if it has the same code delta as the previous patch set.
|
||||
This is the case if the change was rebased onto a different parent.
|
||||
This can be used to enable sticky approvals, reducing turn-around for
|
||||
trivial rebases prior to submitting a change.
|
||||
It is recommended to enable this for the Code-Review label.
|
||||
For the pre-installed Code-Review label this is enabled by default.
|
||||
Defaults to false.
|
||||
|
||||
[[label_copyAllScoresIfNoCodeChange]]
|
||||
|
||||
@@ -226,6 +226,7 @@ public class AllProjectsCreator {
|
||||
new LabelValue((short) -1, "I would prefer this is not merged as is"),
|
||||
new LabelValue((short) -2, "This shall not be merged")));
|
||||
type.setCopyMinScore(true);
|
||||
type.setCopyAllScoresOnTrivialRebase(true);
|
||||
c.getLabelSections().put(type.getName(), type);
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user