From: Andrew Grimberg Date: Mon, 11 Sep 2023 15:29:18 +0000 (-0700) Subject: Feat: Switch to submit rules X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=HEAD;p=All-Projects.git Feat: Switch to submit rules Signed-off-by: Andrew Grimberg --- diff --git a/project.config b/project.config index 1271336..ca8e95e 100644 --- a/project.config +++ b/project.config @@ -11,14 +11,18 @@ create = group Administrators create = group Project Owners [label "Verified"] - function = MaxWithBlock + function = NoBlock value = -1 Fails value = 0 No score value = +1 Verified defaultValue = 0 copyCondition = changekind:NO_CHANGE +[submit-requirement "Verified"] + description = A maximum 'Verified' vote is required for the 'Verified' label. A minimum vote is blocking. + submittableIf = label:Verified=MAX AND -label:Verified=MIN + canOverrideInChildProjects = true [label "Code-Review"] - function = MaxWithBlock + function = NoBlock abbreviation = R value = -2 Do not submit value = -1 I would prefer this is not merged as is @@ -27,6 +31,10 @@ value = +2 Looks good to me, approved defaultValue = 0 copyCondition = changekind:NO_CHANGE OR is:MIN +[submit-requirement "Code-Review"] + description = A maximum 'Code-Review' vote is required for the 'Code-Review' label. A minimum vote is blocking. + submittableIf = label:Code-Review=MAX AND -label:Code-Review=MIN + canOverrideInChildProjects = true [receive] requireContributorAgreement = true requireSignedOffBy = true