Optionally skip submit rules evaluation on closed changes

Adds a `change.skipCurrentRulesEvaluationOnClosedChanges` configuration
option to control submit rule evaluation on closed (merged and abandoned)
changes.

The default value for this option is `true` to keep the current
behaviour of Gerrit. This means that each time closed change is viewed,
submit rules will be revaluated. This may result in labels being added
or removed depending on the most recent project configuration. This also
means that labels on the closed changes may not represent the stale of
them when it was submitted.

When `change.skipCurrentRulesEvaluationOnClosedChanges` is set to `true`
Gerrit will show the exact state of review labels the change was merged
with.

Bug: Issue 298084094
Release-Notes: Allow disable rules evaluation on closed changes
Change-Id: I2499271b84edceba0c34c3347dea2f8508eca00f
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index 4b89c6b..524b171 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -1662,6 +1662,21 @@
 +
 Default is 5 minutes.
 
+[[change.skipCurrentRulesEvaluationOnClosedChanges]]
++
+If false, Gerrit will always take latest project configuration to
+compute submit labels. This means that, closed changes (either merged
+or abandoned) will be evaluated against the latest configuration which
+may produce different results. Especially for merged changes, they may
+look like they didn't meet the submit requirements.
++
+When true, evaluation will be skipped and Gerrit will show the
+exact status of submit labels when change was submitted. Post-review
+votes will only be allowed on labels that were configured when change
+was closed.
++
+Default it false.
+
 [[changeCleanup]]
 === Section changeCleanup