From 6a7e65d5dca817f69577ba0c27189ca964c159d5 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 28 Nov 2022 09:33:31 -0800 Subject: [PATCH] Add Gerrit Verified/Workflow submit reqs to tutorial Gerrit 3.7 forbids setting the MaxWithBlock function on labels, so replace that with these equivalent submit requirements in our tutorial example configuration. Change-Id: Iadca7d36a342eb1a890a7b83a5e08938a2b52e20 --- doc/source/examples/playbooks/project.config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/source/examples/playbooks/project.config b/doc/source/examples/playbooks/project.config index 6ca005dd41..8ffaf229b0 100644 --- a/doc/source/examples/playbooks/project.config +++ b/doc/source/examples/playbooks/project.config @@ -80,3 +80,13 @@ value = 0 Ready for reviews value = +1 Approved defaultValue = 0 +[submit-requirement "Verified"] + description = A maximum vote is required for the \ + 'Verified' label. A minimum vote is blocking. + submittableIf = label:Verified=MAX AND -label:Verified=MIN + canOverrideInChildProjects = true +[submit-requirement "Workflow"] + description = A maximum vote is required for the \ + 'Workflow' label. A minimum vote is blocking. + submittableIf = label:Workflow=MAX AND -label:Workflow=MIN + canOverrideInChildProjects = true