Label config: Allow to configure individual votes as sticky
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
diff --git a/Documentation/config-labels.txt b/Documentation/config-labels.txt
index 193a96f..a3b9d0b 100644
--- a/Documentation/config-labels.txt
+++ b/Documentation/config-labels.txt
@@ -344,6 +344,13 @@
Defaults to true.
+[[label_copyValue]]
+=== `label.Label-Name.copyValue`
+
+Value that should be copied forward when a new patch set is uploaded.
+This can be used to enable sticky votes. Can be specified multiple
+times. By default not set.
+
[[label_canOverride]]
=== `label.Label-Name.canOverride`