
At the moment one can only configure min/max (-2/+2) or all (-2 .. +2) votes as sticky, but sometimes it's e.g. wanted that all negative (-2, -1) / all positive (+1, +2) votes are sticky. Instead of adding sepcific copy rules for this (e.g. copyNegativeScore and copyPositiveScore) allow to configure indiviual votes as sticky. This is more flexible and can cover all possible scenarios. E.g. we could use the new copy rule to make positive votes in the homepage repo sticky which e.g. helps with visualising consent on design docs (see issue 12025). Bug: Issue 12025 Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ia8d1b634bc76123db9fc1ec0667e17c3e9e27204
39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
// Copyright (C) 2019 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package com.google.gerrit.extensions.common;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class LabelDefinitionInfo {
|
|
public String name;
|
|
public String projectName;
|
|
public String function;
|
|
public Map<String, String> values;
|
|
public short defaultValue;
|
|
public List<String> branches;
|
|
public Boolean canOverride;
|
|
public Boolean copyAnyScore;
|
|
public Boolean copyMinScore;
|
|
public Boolean copyMaxScore;
|
|
public Boolean copyAllScoresIfNoChange;
|
|
public Boolean copyAllScoresIfNoCodeChange;
|
|
public Boolean copyAllScoresOnTrivialRebase;
|
|
public Boolean copyAllScoresOnMergeFirstParentUpdate;
|
|
public List<Short> copyValues;
|
|
public Boolean allowPostSubmit;
|
|
public Boolean ignoreSelfApproval;
|
|
}
|