blob: 345465120e8f21780da5929c1855e5269180b2e9 [file] [log] [blame]
[access]
inheritFrom = All-Projects
[submit]
action = inherit
rejectEmptyCommit = true
[receive]
requireSignedOffBy = true
rejectImplicitMerges = true
requireChangeId = true
[project]
description = Access controls for the TS namespace
[access "refs/*"]
read = group Service Users
create = group ts-devs
[access "refs/for/refs/heads/integration"]
abandon = group ts-devs
forgeAuthor = group ts-devs
forgeCommitter = group ts-devs
push = group Registered Users
push = group ts-devs
pushMerge = group ts-devs
rebase = group Registered Users
submit = group ts-devs
[access "refs/heads/integration"]
forgeAuthor = group ts-devs
forgeCommitter = group ts-devs
[access "refs/for/refs/heads/main"]
abandon = group ts-maintainers
push = group ts-maintainers
pushMerge = group ts-maintainers
rebase = group ts-maintainers
submit = group ts-maintainers
[access "refs/heads/main"]
push = group ts-maintainers
pushMerge = group ts-maintainers
[access "refs/heads/*"]
abandon = group ts-maintainers
create = group ts-maintainers
forgeAuthor = group ts-maintainers
forgeCommitter = group ts-maintainers
forgeServerAsCommitter = group ts-maintainers
push = +force group ts-maintainers
pushMerge = group ts-maintainers
submit = group ts-maintainers
submitAs = group ts-maintainers
label-Code-Review = -1..+1 group Registered Users
label-Code-Owner-Review = -1..+1 group ts-maintainers
label-Maintainer-Review = -1..+1 group ts-maintainers
label-Verified = -1..+1 group ts-devs
[access "refs/meta/config"]
read = group ts-maintainers
create = group ts-maintainers
push = group ts-maintainers
submit = group ts-maintainers
label-Code-Review = -2..+2 group ts-maintainers
[access "refs/meta/dashboards/*"]
create = group ts-maintainers
push = group ts-maintainers
[access "refs/tags/*"]
create = group ts-maintainers
createTag = group ts-maintainers
createSignedTag = group ts-maintainers
push = +force group ts-maintainers
[access "refs/heads/topics/*"]
abandon = group ts-devs
forgeAuthor = group ts-devs
forgeCommitter = group ts-devs
push = group Registered Users
push = group ts-devs
push = +force group ts-devs
pushMerge = group Registered Users
pushMerge = group ts-devs
create = group ts-devs
[access "refs/for/refs/heads/topics/*"]
abandon = group ts-devs
forgeAuthor = group ts-devs
forgeCommitter = group ts-devs
push = group Registered Users
push = group ts-devs
push = +force group ts-devs
pushMerge = group Registered Users
pushMerge = group ts-devs
create = group Registered Users
create = group ts-devs
# The Code-Review label is purely informational. Contributors that are neither
# code owners for the patch nor maintainers use it to record their concerns.
[label "Code-Review"]
function = NoBlock
value = -1 I would prefer this is not merged as is
value = 0 No score
value = +1 Looks good to me
defaultValue = 0
copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
# In addition, define our 2 custom labels for code review.
# These influence whether a patch is submittable.
[label "Code-Owner-Review"]
function = NoBlock
value = -1 I would prefer this is not merged as is
value = 0 No score
value = +1 Looks good to me
defaultValue = 0
copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
[label "Maintainer-Review"]
function = NoBlock
value = -1 I would prefer this is not merged as is
value = 0 No score
value = +1 Looks good to me
defaultValue = 0
copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
[label "Verified"]
function = NoBlock
value = -1 Fails
value = 0 No score
value = +1 Verified
defaultValue = 0
copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
[submit-requirement "Code-Review"]
description = Code review
submittableIf = label:Code-Review=MAX,user=non_uploader -label:Code-Review<0
canOverrideInChildProjects = true
[submit-requirement "Code-Owner-or-Maintainer-Review"]
description = Code Owner or Maintainr Review
submittableIf = (label:Maintainer-Review=MAX OR label:Code-Owner-Review=MAX) AND (-label:Maintainer-Review<0 OR label:Code-Owner-Review<0)
canOverrideInChildProjects = true
[submit-requirement "Verified"]
description = Static and dynamic quality check
submittableIf = label:Verified=MAX -label:Verified=MIN
canOverrideInChildProjects = true