-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththemes.tf
290 lines (238 loc) · 6.06 KB
/
themes.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
resource "github_repository" "themes" {
name = "themes"
description = "Design Tokens and NL Design System themes for organisations that don't have their own Storybook."
allow_merge_commit = false
allow_rebase_merge = true
allow_squash_merge = true
allow_auto_merge = true
delete_branch_on_merge = true
has_issues = true
has_downloads = false
has_projects = false
has_wiki = false
vulnerability_alerts = true
homepage_url = "https://nl-design-system.github.io/themes/"
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "PR_BODY"
topics = ["nl-design-system", "storybook"]
template {
include_all_branches = false
owner = "nl-design-system"
repository = "example"
}
pages {
build_type = "workflow"
# A `source` block is only needed when `build_type` is set to `"legacy"`, but because GitHub keeps it around invisibly, we must add it here to prevent churn
source {
branch = "gh-pages"
path = "/"
}
}
lifecycle {
prevent_destroy = true
}
}
resource "github_branch_default" "themes" {
repository = github_repository.themes.name
branch = "main"
}
resource "github_repository_ruleset" "themes-main" {
enforcement = "active"
name = "default-branch-protection"
repository = github_repository.themes.name
target = "branch"
bypass_actors {
actor_id = github_team.kernteam-ci.id
actor_type = "Team"
bypass_mode = "always"
}
conditions {
ref_name {
include = ["~DEFAULT_BRANCH"]
exclude = []
}
}
rules {
creation = true
deletion = true
non_fast_forward = true
required_linear_history = true
required_signatures = false
update = false
update_allows_fetch_and_merge = false
pull_request {
dismiss_stale_reviews_on_push = true
require_code_owner_review = true
require_last_push_approval = false
required_approving_review_count = 1
required_review_thread_resolution = true
}
required_status_checks {
do_not_enforce_on_create = false
strict_required_status_checks_policy = false
required_check {
context = "Continuous integration"
integration_id = 15368
}
}
}
}
resource "github_repository_collaborators" "themes" {
repository = github_repository.themes.name
team {
permission = "admin"
team_id = github_team.kernteam-admin.id
}
team {
permission = "maintain"
team_id = github_team.kernteam-maintainer.id
}
team {
permission = "push"
team_id = github_team.kernteam-committer.id
}
team {
permission = "triage"
team_id = github_team.kernteam-triage.id
}
team {
permission = "triage"
team_id = github_team.kernteam-dependabot.id
}
team {
permission = "push"
team_id = github_team.gemeente-amsterdam.id
}
team {
permission = "push"
team_id = github_team.gemeente-bodegraven-reeuwijk.id
}
team {
permission = "push"
team_id = github_team.gemeente-bodegraven-reeuwijk.id
}
team {
permission = "push"
team_id = github_team.gemeente-borne.id
}
team {
permission = "push"
team_id = github_team.gemeente-buren.id
}
team {
permission = "push"
team_id = github_team.gemeente-den-haag.id
}
team {
permission = "push"
team_id = github_team.gemeente-drechterland.id
}
team {
permission = "push"
team_id = github_team.gemeente-duiven.id
}
team {
permission = "push"
team_id = github_team.gemeente-enkhuizen.id
}
team {
permission = "push"
team_id = github_team.gemeente-groningen.id
}
team {
permission = "push"
team_id = github_team.gemeente-haarlem.id
}
team {
permission = "push"
team_id = github_team.gemeente-hoorn.id
}
team {
permission = "push"
team_id = github_team.gemeente-horst-aan-de-maas.id
}
team {
permission = "push"
team_id = github_team.gemeente-leidschendam-voorburg.id
}
team {
permission = "push"
team_id = github_team.gemeente-nijmegen.id
}
team {
permission = "push"
team_id = github_team.gemeente-noordoostpolder.id
}
team {
permission = "push"
team_id = github_team.gemeente-stedebroec.id
}
team {
permission = "push"
team_id = github_team.gemeente-tilburg.id
}
team {
permission = "push"
team_id = github_team.gemeente-utrecht.id
}
team {
permission = "push"
team_id = github_team.gemeente-venray.id
}
team {
permission = "push"
team_id = github_team.gemeente-vught.id
}
team {
permission = "push"
team_id = github_team.gemeente-westervoort.id
}
team {
permission = "push"
team_id = github_team.gemeente-zevenaar.id
}
team {
permission = "push"
team_id = github_team.gemeente-zwolle.id
}
team {
permission = "push"
team_id = github_team.rid-de-liemers.id
}
team {
permission = "push"
team_id = github_team.provincie-zuid-holland.id
}
team {
permission = "push"
team_id = github_team.minaz-1overheid.id
}
team {
permission = "push"
team_id = github_team.frameless.id
}
team {
permission = "push"
team_id = github_team.logius.id
}
team {
permission = "push"
team_id = github_team.voorbeeld-theme-committer.id
}
team {
permission = "push"
team_id = github_team.vng-services-committer.id
}
team {
permission = "push"
team_id = github_team.gemeente-almere-committer.id
}
team {
permission = "push"
team_id = github_team.nora-committer.id
}
team {
permission = "push"
team_id = github_team.quintor-rijkshuisstijl-committer.id
}
}