blob: 8abad38eee80269d4c890d9a54f1575454d09cdd [file]
[access]
inheritFrom = Public-Commit-Queue-Projects
[submit]
action = inherit
[label "Docs-Not-Needed"]
function = NoBlock
defaultValue = 0
value = 0 Docs Needed
value = +1 Docs Not Needed
copyCondition = is:ANY
[label "Tests-Not-Needed"]
function = NoBlock
defaultValue = 0
value = 0 Tests Needed
value = +1 Tests Not Needed
copyCondition = is:ANY
[label "Images-Allowed"]
function = NoBlock
defaultValue = 0
value = 0 Images Not Allowed
value = +1 Images Allowed
copyCondition = is:ANY
[access "refs/heads/*"]
label-Bypass-Copybara = +0..+1 group Copybara Override
label-Copybara-Verified = -1..+1 group Copybara
label-Docs-Not-Needed = +0..+1 group Administrators
label-Docs-Not-Needed = +0..+1 group Pigweed Source Approvers
label-Docs-Not-Needed = +0..+1 group Pigweed Source Committers
label-Docs-Not-Needed = +0..+1 group Project Owners
label-Docs-Not-Needed = +0..+1 group Registered Users
label-Tests-Not-Needed = +0..+1 group Administrators
label-Tests-Not-Needed = +0..+1 group Pigweed Source Approvers
label-Tests-Not-Needed = +0..+1 group Pigweed Source Committers
label-Tests-Not-Needed = +0..+1 group Project Owners
label-Tests-Not-Needed = +0..+1 group Registered Users
label-Images-Allowed = +0..+1 group Images Override
label-Allow-Non-Copybara-Fuchsia-Change = +0..+1 group Fuchsia Copybara Override
label-Commit-Queue = +0..+2 group cria/project-pigweed-tryjob-limited-access
[label "Allow-Non-Copybara-Fuchsia-Change"]
function = NoBlock
defaultValue = 0
value = 0 Only Copybara Fuchsia Changes Allowed
value = +1 All Fuchsia Changes Allowed
copyCondition = is:ANY
[label "Copybara-Verified"]
function = NoBlock
defaultValue = 0
value = -1 Failed
value = 0 Pending
value = +1 Passed
copyCondition = changekind:NO_CODE_CHANGE
[label "Bypass-Copybara"]
function = NoBlock
defaultValue = 0
value = 0 Do Not Bypass Copybara
value = +1 Bypass Copybara
copyCondition = is:ANY
[submit-requirement "Docs"]
description = All changes require updates to docs xor an explicit vote indicating docs are not required.
applicableIf = path:\"^~(.*OWNERS.*)\" AND -is:pure-revert AND -branch:refs/meta/config AND -owner:pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com
submittableIf = (file:\"^.*\\\\.rst$\" OR file:\"^.*\\\\.md$\" OR file:\"^.*/docs?/.*$\" OR file:\"^seed/.*$\") AND -label:Docs-Not-Needed=MAX,user=owner
overrideIf = label:Docs-Not-Needed=MAX AND -file:\"^.*\\\\.rst$\" AND -file:\"^.*\\\\.md$\" AND -file:\"^.*/docs?/.*$\" AND -file:\"^seed/.*$\"
canOverrideInChildProjects = true
[submit-requirement "C++-Tests"]
description = All changes that modify *.h or *.cc files must also modify *_test.cc files xor have an explicit vote indicating tests are not required.
applicableIf = (file:\"^.*\\\\.cc$\" OR file:\"^.*\\\\.h$\") AND -is:pure-revert AND -branch:refs/meta/config AND -owner:pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com
submittableIf = file:\"^.*[_/]test\\\\.cc$\" AND -label:Tests-Not-Needed=MAX,user=owner
overrideIf = label:Tests-Not-Needed=MAX AND -file:\"^.*[_/]test\\\\.cc$\"
canOverrideInChildProjects = true
[submit-requirement "Python-Tests"]
description = All changes that modify *.py files must also modify *_test.py files xor have an explicit vote indicating tests are not required.
applicableIf = file:\"^.*\\\\.py$\" AND -is:pure-revert AND -branch:refs/meta/config AND -owner:pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com
submittableIf = file:\"^.*_test\\\\.py$\" AND -label:Tests-Not-Needed=MAX,user=owner
overrideIf = label:Tests-Not-Needed=MAX AND -file:\"^.*_test\\\\.py$\"
canOverrideInChildProjects = true
[submit-requirement "Images-Not-Allowed"]
description = Images are not allowed in the Pigweed repository. Contact a Pigweed team member for access to the pigweed-media GCS bucket. See https://pigweed.dev/docs/contributing/docs/guides.html for full details.
applicableIf = (file:\"^.*\\\\.png$\" OR file:\"^.*\\\\.bmp$\" OR file:\"^.*\\\\.gif$\" OR file:\"^.*\\\\.svg$\" OR file:\"^.*\\\\.jpe?g$\" OR file:\"^.*\\\\.tif+$\" OR file:\"^.*\\\\.webp$\" OR file:\"^.*\\\\.ico$\") AND -is:pure-revert AND -branch:refs/meta/config
submittableIf = is:false
overrideIf = label:Images-Allowed=MAX,user=non_uploader
canOverrideInChildProjects = true
[submit-requirement "Fuchsia-Change-Is-Copybara"]
description = Only Copybara-generated changes are allowed to \"third_party/fuchsia/repo\". If you believe this is an exception get the oncall user to vote Allow-Non-Copybara-Fuchsia-Change +1.
applicableIf = file:\"^third_party/fuchsia/repo/.*\"
submittableIf = hasfooter:\"GitOrigin-RevId\"
overrideIf = label:Allow-Non-Copybara-Fuchsia-Change=MAX,user=non_uploader
canOverrideInChildProjects = false
[submit-requirement "Copybara-Verified"]
description = Tests pass after copybara migrations. To bypass get the oncall user to vote Bypass-Copybara +1.
applicableIf = is:false
submittableIf = label:Copybara-Verified
overrideIf = label:Bypass-Copybara=MAX,user=non_uploader
canOverrideInChildProjects = true