Fix boolean operator in submittableIf rules

Gerrit 3.6 and older do not support 'and' as a boolean operator. They
only support 'AND'. For maximum compatibility (we are running 3.6.4
currently) convert 'and' to 'AND' in Gerrit submittableIf rules.

Change-Id: Iac5e2cda4a245f99e98a1354ad4107da07e1f60d
This commit is contained in:
Clark Boylan 2023-03-09 08:33:22 -08:00
parent ae7884a409
commit 64957e9e0d

View File

@ -304,7 +304,7 @@ Next, edit ``project.config`` to look like::
[submit-requirement "Code-Review"] [submit-requirement "Code-Review"]
description = Code reviewed description = Code reviewed
submittableIf = label:Code-Review=MAX and -label:Code-Review=MIN submittableIf = label:Code-Review=MAX AND -label:Code-Review=MIN
canOverrideInChildProjects = true canOverrideInChildProjects = true
[label "Verified"] [label "Verified"]
@ -317,7 +317,7 @@ Next, edit ``project.config`` to look like::
[submit-requirement "Verified"] [submit-requirement "Verified"]
description = Code verified by Zuul description = Code verified by Zuul
submittableIf = label:Verified=MAX and -label:Verified=MIN submittableIf = label:Verified=MAX AND -label:Verified=MIN
[label "Workflow"] [label "Workflow"]
function = NoBlock function = NoBlock
@ -327,7 +327,7 @@ Next, edit ``project.config`` to look like::
[submit-requirement "Workflow"] [submit-requirement "Workflow"]
description = Approved by core member description = Approved by core member
submittableIf = label:Workflow=MAX and -label:Workflow=MIN submittableIf = label:Workflow=MAX AND -label:Workflow=MIN
[plugin "its-storyboard"] [plugin "its-storyboard"]
enabled = true enabled = true