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:
Edwin Kempin
2015-04-28 10:43:26 +02:00
parent e19c79cd55
commit 09f7f7b5d8
2 changed files with 2 additions and 1 deletions

View File

@@ -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]]

View File

@@ -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;
}