blob: a5c40685cb2f043b68ff37de2bcb62e928e527c4 [file] [log] [blame]
György Szing50f1d082020-11-25 12:11:37 +00001[access]
2 inheritFrom = All-Projects
3[submit]
Gyorgy Szing0b28a072021-02-18 00:21:49 +01004 action = inherit
5 rejectEmptyCommit = true
6[receive]
7 requireSignedOffBy = true
8 rejectImplicitMerges = true
9 requireChangeId = true
10[project]
11 description = Access controls for the tf.org/ts namespace
12
13[access "refs/*"]
14 read = group Service Users
15
16[access "refs/heads/*"]
17 abandon = group ts-maintainers
18 create = group ts-maintainers
19 editTopicName = group ts-maintainers
20 forgeAuthor = group ts-maintainers
21 forgeCommitter = group ts-maintainers
22 forgeServerAsCommitter = group ts-maintainers
23 push = +force group ts-maintainers
24 pushMerge = group ts-maintainers
25 submit = group ts-maintainers
26 submitAs = group ts-maintainers
27
28 label-Code-Review = -1..+1 group Registered Users
29 label-Code-Owner-Review = -1..+1 group ts-maintainers
30 label-Maintainer-Review = -1..+1 group ts-maintainers
31
32 label-Verified = -1..+1 group ts-maintainers
33
34[access "refs/meta/config"]
35 read = group ts-maintainers
36 create = group ts-maintainers
37 push = group ts-maintainers
38 submit = group ts-maintainers
39 label-Code-Review = -2..+2 group ts-maintainers
40
41[access "refs/meta/dashboards/*"]
42 create = group ts-maintainers
43 push = group ts-maintainers
44
45[access "refs/tags/*"]
46 create = group ts-maintainers
47 createTag = group ts-maintainers
48 createSignedTag = group ts-maintainers
49
50[access "refs/heads/topics/*"]
51 abandon = group ts-devs
52 forgeAuthor = group ts-devs
53 forgeCommitter = group ts-devs
54 push = group ts-devs
55 pushMerge = group ts-devs
56 create = group ts-devs
57
58[access "refs/for/refs/heads/topics/*"]
59 abandon = group ts-devs
60 forgeAuthor = group ts-devs
61 forgeCommitter = group ts-devs
62 push = +force group ts-devs
63 pushMerge = group ts-devs
64
65# The Code-Review label is purely informational. Contributors that are neither
66# code owners for the patch nor maintainers use it to record their concerns.
67[label "Code-Review"]
68 function = NoBlock
69 value = -1 I would prefer this is not merged as is
70 value = 0 No score
71 value = +1 Looks good to me
72 copyAllScoresIfNoCodeChange = true
73 copyAllScoresOnTrivialRebase = true
74 defaultValue = 0
75
76# In addition, define our 2 custom labels for code review.
77# These influence whether a patch is submittable.
78[label "Code-Owner-Review"]
79 function = MaxWithBlock
80 value = -1 I would prefer this is not merged as is
81 value = 0 No score
82 value = +1 Looks good to me
83 copyAllScoresIfNoCodeChange = true
84 copyAllScoresOnTrivialRebase = true
85 defaultValue = 0
86
87[label "Maintainer-Review"]
88 function = MaxWithBlock
89 value = -1 I would prefer this is not merged as is
90 value = 0 No score
91 value = +1 Looks good to me
92 copyAllScoresIfNoCodeChange = true
93 copyAllScoresOnTrivialRebase = true
94 defaultValue = 0
95
96[label "Verified"]
97 function = MaxWithBlock
98 value = -1 Fails
99 value = 0 No score
100 value = +1 Verified
101 copyAllScoresIfNoCodeChange = true
102 copyAllScoresOnTrivialRebase = true
103 defaultValue = 0