Create a label config for copying all scores if list of files is the same

This change allows creating new labels or setting to an old label a new
label config: copyAllScoresIfListOfFilesDidNotChange.

Labels that have this config set to true will copy all scores if the
list of files did not change. Renames count as the same file (= no file
change); as long as there are no explicit additions or deletions to the
list of files, the scores will be copied to the next patch-set.

Change-Id: I0051ea1236e6bd50a69455d799ce27081091d21a
This commit is contained in:
Gal Paikin
2021-01-19 11:55:19 +01:00
parent d60c956621
commit bef260ec30
20 changed files with 316 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ public class LabelDefinitionInfo {
public Boolean copyAnyScore;
public Boolean copyMinScore;
public Boolean copyMaxScore;
public Boolean copyAllScoresIfListOfFilesDidNotChange;
public Boolean copyAllScoresIfNoChange;
public Boolean copyAllScoresIfNoCodeChange;
public Boolean copyAllScoresOnTrivialRebase;

View File

@@ -27,6 +27,7 @@ public class LabelDefinitionInput extends InputWithCommitMessage {
public Boolean copyAnyScore;
public Boolean copyMinScore;
public Boolean copyMaxScore;
public Boolean copyAllScoresIfListOfFilesDidNotChange;
public Boolean copyAllScoresIfNoChange;
public Boolean copyAllScoresIfNoCodeChange;
public Boolean copyAllScoresOnTrivialRebase;