From a99deac66f6578fd1e8aa0a0ca0ee9fed356a801 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Mon, 11 Sep 2023 08:29:18 -0700 Subject: [PATCH] Feat: Switch to submit rules Signed-off-by: Andrew Grimberg --- project.config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.16.6