Migrate label functions to submit requirements
diff --git a/project.config b/project.config
index b1a2cc0..15e1abe 100644
--- a/project.config
+++ b/project.config
@@ -70,7 +70,7 @@
create = group Coral-Admins
createTag = group Coral-Admins
[label "Code-Review"]
- function = MaxWithBlock
+ function = NoBlock
defaultValue = 0
value = -2 This shall not be merged
value = -1 I would prefer this is not merged as is
@@ -79,7 +79,7 @@
value = +2 Looks good to me, approved
copyCondition = changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN
[label "Presubmit"]
- function = AnyWithBlock
+ function = NoBlock
value = -1 Fails
value = 0 No score
value = +1 Verified
@@ -110,3 +110,9 @@
viewAllAccounts = group mdb/copybara-git-readers
viewAllAccounts = group mdb/copybara-git-readers
viewAllAccounts = group mdb/copybara-git-readers
+[submit-requirement "Presubmit"]
+ submittableIf = -label:Presubmit=MIN
+ canOverrideInChildProjects = true
+[submit-requirement "Code-Review"]
+ submittableIf = label:Code-Review=MAX AND -label:Code-Review=MIN
+ canOverrideInChildProjects = true