Migrate label functions to submit requirements
diff --git a/project.config b/project.config
index 21b806f..605b1d8 100644
--- a/project.config
+++ b/project.config
@@ -89,7 +89,7 @@
toggleWipState = group Change Owner
[label "API-Review"]
branch = refs/heads/main
- function = MaxWithBlock
+ function = NoBlock
defaultValue = 0
value = -1 This shall not be merged
value = 0 No score
@@ -98,7 +98,7 @@
[label "Code-Review"]
branch = refs/heads/main
branch = refs/heads/releases/*
- function = MaxWithBlock
+ function = NoBlock
defaultValue = 0
value = -2 This shall not be merged
value = -1 I would prefer this is not merged as is
@@ -123,3 +123,9 @@
value = 0 Do not send CL to CQ automatically after approval
value = +1 Send CL to CQ automatically after approval
copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE OR is:MAX OR is:MIN
+[submit-requirement "API-Review"]
+ submittableIf = label:API-Review=MAX AND -label:API-Review=MIN
+ canOverrideInChildProjects = true
+[submit-requirement "Code-Review"]
+ submittableIf = label:Code-Review=MAX AND -label:Code-Review=MIN
+ canOverrideInChildProjects = true