blob: 345465120e8f21780da5929c1855e5269180b2e9 [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]
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020011 description = Access controls for the TS namespace
Gyorgy Szing0b28a072021-02-18 00:21:49 +010012
13[access "refs/*"]
14 read = group Service Users
György Szingbfbd40b2021-08-16 13:13:53 +020015 create = group ts-devs
Gyorgy Szing0b28a072021-02-18 00:21:49 +010016
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020017[access "refs/for/refs/heads/integration"]
18 abandon = group ts-devs
19 forgeAuthor = group ts-devs
20 forgeCommitter = group ts-devs
21 push = group Registered Users
György Szing4090f0c2024-09-02 13:15:43 +020022 push = group ts-devs
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020023 pushMerge = group ts-devs
24 rebase = group Registered Users
25 submit = group ts-devs
26[access "refs/heads/integration"]
27 forgeAuthor = group ts-devs
28 forgeCommitter = group ts-devs
29
30[access "refs/for/refs/heads/main"]
31 abandon = group ts-maintainers
32 push = group ts-maintainers
33 pushMerge = group ts-maintainers
34 rebase = group ts-maintainers
35 submit = group ts-maintainers
36[access "refs/heads/main"]
37 push = group ts-maintainers
38 pushMerge = group ts-maintainers
39
Gyorgy Szing0b28a072021-02-18 00:21:49 +010040[access "refs/heads/*"]
41 abandon = group ts-maintainers
42 create = group ts-maintainers
Gyorgy Szing0b28a072021-02-18 00:21:49 +010043 forgeAuthor = group ts-maintainers
44 forgeCommitter = group ts-maintainers
45 forgeServerAsCommitter = group ts-maintainers
46 push = +force group ts-maintainers
47 pushMerge = group ts-maintainers
48 submit = group ts-maintainers
49 submitAs = group ts-maintainers
50
51 label-Code-Review = -1..+1 group Registered Users
52 label-Code-Owner-Review = -1..+1 group ts-maintainers
53 label-Maintainer-Review = -1..+1 group ts-maintainers
54
György Szing94a77032021-11-10 14:40:30 +010055 label-Verified = -1..+1 group ts-devs
Gyorgy Szing0b28a072021-02-18 00:21:49 +010056
57[access "refs/meta/config"]
58 read = group ts-maintainers
59 create = group ts-maintainers
60 push = group ts-maintainers
61 submit = group ts-maintainers
62 label-Code-Review = -2..+2 group ts-maintainers
63
64[access "refs/meta/dashboards/*"]
65 create = group ts-maintainers
66 push = group ts-maintainers
67
68[access "refs/tags/*"]
69 create = group ts-maintainers
70 createTag = group ts-maintainers
71 createSignedTag = group ts-maintainers
György Szing67fcc692023-09-28 17:03:06 +020072 push = +force group ts-maintainers
Gyorgy Szing0b28a072021-02-18 00:21:49 +010073
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020074[access "refs/heads/topics/*"]
György Szing67fcc692023-09-28 17:03:06 +020075 abandon = group ts-devs
Gyorgy Szing0b28a072021-02-18 00:21:49 +010076 forgeAuthor = group ts-devs
77 forgeCommitter = group ts-devs
György Szingd6300b32024-09-02 13:20:26 +020078 push = group Registered Users
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020079 push = group ts-devs
80 push = +force group ts-devs
György Szingd6300b32024-09-02 13:20:26 +020081 pushMerge = group Registered Users
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020082 pushMerge = group ts-devs
83 create = group ts-devs
Gyorgy Szing05e98922021-04-14 13:20:59 +020084
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020085[access "refs/for/refs/heads/topics/*"]
Gyorgy Szing05e98922021-04-14 13:20:59 +020086 abandon = group ts-devs
Gyorgy Szinge7224832021-08-16 12:48:32 +020087 forgeAuthor = group ts-devs
88 forgeCommitter = group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020089 push = group Registered Users
Gyorgy Szinge7224832021-08-16 12:48:32 +020090 push = group ts-devs
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020091 push = +force group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020092 pushMerge = group Registered Users
Gyorgy Szing0b28a072021-02-18 00:21:49 +010093 pushMerge = group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020094 create = group Registered Users
Gyorgy Szinge7224832021-08-16 12:48:32 +020095 create = group ts-devs
Gyorgy Szing0b28a072021-02-18 00:21:49 +010096
97# The Code-Review label is purely informational. Contributors that are neither
98# code owners for the patch nor maintainers use it to record their concerns.
99[label "Code-Review"]
100 function = NoBlock
101 value = -1 I would prefer this is not merged as is
102 value = 0 No score
103 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100104 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200105 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100106
107# In addition, define our 2 custom labels for code review.
108# These influence whether a patch is submittable.
109[label "Code-Owner-Review"]
György Szing7a7d57b2024-02-06 09:22:36 +0100110 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100111 value = -1 I would prefer this is not merged as is
112 value = 0 No score
113 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100114 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200115 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100116
117[label "Maintainer-Review"]
György Szing7a7d57b2024-02-06 09:22:36 +0100118 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100119 value = -1 I would prefer this is not merged as is
120 value = 0 No score
121 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100122 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200123 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100124
125[label "Verified"]
György Szing7a7d57b2024-02-06 09:22:36 +0100126 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100127 value = -1 Fails
128 value = 0 No score
129 value = +1 Verified
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100130 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200131 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
György Szing7a7d57b2024-02-06 09:22:36 +0100132
133[submit-requirement "Code-Review"]
134 description = Code review
György Szingce8975b2024-02-07 23:59:38 +0100135 submittableIf = label:Code-Review=MAX,user=non_uploader -label:Code-Review<0
György Szing4090f0c2024-09-02 13:15:43 +0200136 canOverrideInChildProjects = true
György Szing7a7d57b2024-02-06 09:22:36 +0100137[submit-requirement "Code-Owner-or-Maintainer-Review"]
138 description = Code Owner or Maintainr Review
György Szingce8975b2024-02-07 23:59:38 +0100139 submittableIf = (label:Maintainer-Review=MAX OR label:Code-Owner-Review=MAX) AND (-label:Maintainer-Review<0 OR label:Code-Owner-Review<0)
György Szing4090f0c2024-09-02 13:15:43 +0200140 canOverrideInChildProjects = true
György Szing7a7d57b2024-02-06 09:22:36 +0100141[submit-requirement "Verified"]
142 description = Static and dynamic quality check
György Szing77218fa2024-02-07 23:49:30 +0100143 submittableIf = label:Verified=MAX -label:Verified=MIN
György Szing4090f0c2024-09-02 13:15:43 +0200144 canOverrideInChildProjects = true