Feat: Switch to submit rules config
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 11 Sep 2023 15:29:18 +0000 (08:29 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 11 Sep 2023 15:29:18 +0000 (08:29 -0700)
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
project.config

index 1271336..ca8e95e 100644 (file)
        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
        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