blob: 245ba56012891be224a2a9277a4892081c66227b [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
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020078 push = group ts-devs
79 push = +force group ts-devs
80 pushMerge = group ts-devs
81 create = group ts-devs
Gyorgy Szing05e98922021-04-14 13:20:59 +020082
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020083[access "refs/for/refs/heads/topics/*"]
Gyorgy Szing05e98922021-04-14 13:20:59 +020084 abandon = group ts-devs
Gyorgy Szinge7224832021-08-16 12:48:32 +020085 forgeAuthor = group ts-devs
86 forgeCommitter = group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020087 push = group Registered Users
Gyorgy Szinge7224832021-08-16 12:48:32 +020088 push = group ts-devs
Gyorgy Szing26ed0f42022-05-17 20:47:02 +020089 push = +force group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020090 pushMerge = group Registered Users
Gyorgy Szing0b28a072021-02-18 00:21:49 +010091 pushMerge = group ts-devs
György Szing4090f0c2024-09-02 13:15:43 +020092 create = group Registered Users
Gyorgy Szinge7224832021-08-16 12:48:32 +020093 create = group ts-devs
Gyorgy Szing0b28a072021-02-18 00:21:49 +010094
95# The Code-Review label is purely informational. Contributors that are neither
96# code owners for the patch nor maintainers use it to record their concerns.
97[label "Code-Review"]
98 function = NoBlock
99 value = -1 I would prefer this is not merged as is
100 value = 0 No score
101 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100102 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200103 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100104
105# In addition, define our 2 custom labels for code review.
106# These influence whether a patch is submittable.
107[label "Code-Owner-Review"]
György Szing7a7d57b2024-02-06 09:22:36 +0100108 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100109 value = -1 I would prefer this is not merged as is
110 value = 0 No score
111 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100112 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200113 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100114
115[label "Maintainer-Review"]
György Szing7a7d57b2024-02-06 09:22:36 +0100116 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100117 value = -1 I would prefer this is not merged as is
118 value = 0 No score
119 value = +1 Looks good to me
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100120 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200121 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100122
123[label "Verified"]
György Szing7a7d57b2024-02-06 09:22:36 +0100124 function = NoBlock
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100125 value = -1 Fails
126 value = 0 No score
127 value = +1 Verified
Gyorgy Szing0b28a072021-02-18 00:21:49 +0100128 defaultValue = 0
TrustedFirmware Code Review6e3b67e2023-10-03 22:50:05 +0200129 copyCondition = changekind:NO_CHANGE OR changekind:NO_CODE_CHANGE OR changekind:TRIVIAL_REBASE
György Szing7a7d57b2024-02-06 09:22:36 +0100130
131[submit-requirement "Code-Review"]
132 description = Code review
György Szingce8975b2024-02-07 23:59:38 +0100133 submittableIf = label:Code-Review=MAX,user=non_uploader -label:Code-Review<0
György Szing4090f0c2024-09-02 13:15:43 +0200134 canOverrideInChildProjects = true
György Szing7a7d57b2024-02-06 09:22:36 +0100135[submit-requirement "Code-Owner-or-Maintainer-Review"]
136 description = Code Owner or Maintainr Review
György Szingce8975b2024-02-07 23:59:38 +0100137 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 +0200138 canOverrideInChildProjects = true
György Szing7a7d57b2024-02-06 09:22:36 +0100139[submit-requirement "Verified"]
140 description = Static and dynamic quality check
György Szing77218fa2024-02-07 23:49:30 +0100141 submittableIf = label:Verified=MAX -label:Verified=MIN
György Szing4090f0c2024-09-02 13:15:43 +0200142 canOverrideInChildProjects = true