libyuv/project.config
Youssef Elghareeb fceff13262 Add submit requirements for project libyuv/libyuv
Rules for creating new submit requirements are as follows:
* We don't create submit requirements for labels that are not blocking.
* For labels that do not define any values, we assume they are
overriding a label definition from the parent project (i.e. to ignore
this label in the child project), hence we create a non-applicable
submit requirement for them.
* For other blocking labels, we create a corresponding submit
requirement for them.

Note that for the 'Code-Review' requirement we also set the overrideIf
condition to 'Bot-Commit=+1' since this requirement is currently
enforced from All-Projects rules.pl [1]. When this change is submitted,
the Code-Review SR in this change will be authoritative for the project
and needs to behave in the same way as was previously configured.

[1] https://chromium.googlesource.com/All-Projects/+/5ddd22e7537172878280dc2b47373251e842dda7/rules.pl#7

Change-Id: I5b8e7b6fb9b28c5266f94f97d5c81e273a72872c
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3398373
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
2022-02-17 21:20:17 +00:00

58 lines
1.8 KiB
Plaintext

[access]
inheritFrom = All-Projects
[submit]
action = rebase always
[label "Code-Review"]
abbreviation = R
value = -1 Don't submit as-is
value = 0 No score
value = +1 Looks good to me
defaultValue = 0
function = MaxWithBlock
copyMinScore = true
copyMaxScore = true
copyAllScoresOnTrivialRebase = true
copyAllScoresIfNoCodeChange = true
ignoreSelfApproval = true
[label "Commit-Queue"]
abbreviation = CQ
value = 0 Not ready
value = +1 Dry run
value = +2 Commit
defaultValue = 0
function = NoBlock
[label "Verified"]
function = MaxWithBlock
defaultValue = 0
[access "refs/*"]
owner = group mdb/chrome-git-admins
[access "refs/for/refs/*"]
push = group Logged-in Public Users
create = group Logged-in Public Users
forgeAuthor = group libyuv-committers
exclusiveGroupPermissions = addPatchSet
addPatchSet = group libyuv-committers
addPatchSet = group libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
[access "refs/heads/*"]
label-Code-Review = -1..+1 group libyuv-committers
submit = group libyuv-committers
label-Commit-Queue = +0..+2 group ldap/eng
label-Commit-Queue = +0..+2 group libyuv-committers
label-Commit-Queue = +0..+1 group Logged-in Public Users
labelAs-Commit-Queue = +0..+2 group libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
submit = group libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
[access "refs/heads/master"]
exclusiveGroupPermissions = push submit
[submit-requirement "Code-Review"]
description = Submit requirement for the 'Code-Review' label
submittableIf = label:Code-Review=MAX,user=non_uploader -label:Code-Review=MIN
overrideIf = label:Bot-Commit=+1
canOverrideInChildProjects = true
[submit-requirement "Verified"]
description = Submit requirement for the 'Verified' label
applicableIf = is:false
submittableIf = is:true
canOverrideInChildProjects = true