-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
750 lines (736 loc) · 26.1 KB
/
main.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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
variable "github_token" {
type = string
sensitive = true
}
variable "github_readonly_repos" {
type = map(object({
name = string
description = string
homepage_url = string
topics = list(string)
}))
default = {
# Projects
bard = {
name = "bard"
description = "[read-only] Tool that helps manage monorepos"
homepage_url = "https://docs.sonsofphp.com/bard"
topics = ["sonsofphp", "sons-of-php", "bard-php", "monorepo", "php", "php8"]
},
prospect = {
name = "prospect"
description = "[read-only] PHP Framework"
homepage_url = "https://docs.sonsofphp.com/prospect"
topics = ["sonsofphp", "sons-of-php", "php", "framework"]
},
# Bridges
cqrs_symfony = {
name = "cqrs-symfony"
description = "[read-only] Adds additional functionality to the sonsofphp/cqrs package"
homepage_url = "https://docs.sonsofphp.com/components/cqrs"
topics = ["sonsofphp", "sons-of-php", "bridge", "cqrs", "php", "symfony"]
},
event_sourcing_symfony = {
name = "event-sourcing-symfony"
description = "[read-only] Provides additional functionality to sonsofphp/event-sourcing package"
homepage_url = "https://docs.sonsofphp.com/components/event-sourcing"
topics = ["sonsofphp", "sons-of-php", "event-bus", "event-sourcing", "php", "symfony"]
},
filesystem_aws = {
name = "filesystem-aws"
description = "[read-only] Additional Filesystem adapters for AWS"
homepage_url = "https://docs.sonsofphp.com/components/filesystem"
topics = ["sonsofphp", "sons-of-php", "php", "aws", "s3"]
},
filesystem_liip_imagine = {
name = "filesystem-liip-imagine"
description = "[read-only] Can use Filesystem with the liip imagine library"
homepage_url = "https://docs.sonsofphp.com/components/filesystem"
topics = ["sonsofphp", "sons-of-php", "php", "liip", "imagine-bundle"]
},
money_twig = {
name = "money-twig"
description = "[read-only] Use when dealing with Money in PHP and Twig"
homepage_url = "https://docs.sonsofphp.com/components/money"
topics = ["sonsofphp", "sons-of-php", "currencies", "currency", "iso-4217", "library", "monetary", "money", "php", "php-money", "twig"]
},
pager-doctrine-collections = {
name = "pager-doctrine-collections"
description = "[read-only] Pager Component that uses doctrine/common"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "php-pager", "pager", "pagination"]
},
pager-doctrine-dbal = {
name = "pager-doctrine-dbal"
description = "[read-only] Pager Component that uses doctrine/dbal"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "php-pager", "pager", "pagination"]
},
pager-doctrine-orm = {
name = "pager-doctrine-orm"
description = "[read-only] Pager Component that uses doctrine/orm"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "php-pager", "pager", "pagination"]
},
pager-twig = {
name = "pager-twig"
description = "[read-only] Adds support for twig"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "php-pager", "pager", "pagination", "twig"]
},
# Bundles
clock_bundle = {
name = "clock-bundle"
description = "[read-only] Symfony Clock Bundle"
homepage_url = "https://docs.sonsofphp.com/components/clock"
topics = ["sonsofphp", "sons-of-php", "php", "symfony", "symfony-bundle", "clock"]
},
cqrs_bundle = {
name = "cqrs-bundle"
description = "[read-only] Symfony CQRS Bundle"
homepage_url = "https://docs.sonsofphp.com/components/cqrs"
topics = ["sonsofphp", "sons-of-php", "cqrs", "php", "symfony", "symfony-bundle"]
},
feature_toggle_bundle = {
name = "feature-toggle-bundle"
description = "[read-only] Symfony Feature Toggle Bundle"
homepage_url = "https://docs.sonsofphp.com/components/feature-toggle"
topics = ["sonsofphp", "sons-of-php", "php", "symfony", "symfony-bundle", "feature-toggle"]
},
money_bundle = {
name = "money-bundle"
description = "[read-only] Symfony Money Bundle"
homepage_url = "https://docs.sonsofphp.com/components/money"
topics = ["sonsofphp", "sons-of-php", "php", "symfony", "symfony-bundle", "money"]
},
pager_bundle = {
name = "pager-bundle"
description = "[read-only] Symfony Pager Bundle"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "symfony", "symfony-bundle", "pager"]
},
# Components
assert = {
name = "assert"
description = "[read-only] Assert component"
homepage_url = "https://docs.sonsofphp.com/components/assert"
topics = ["sonsofphp", "sons-of-php", "php", "assert"]
},
attribute = {
name = "attribute"
description = "[read-only] Attribute component"
homepage_url = "https://docs.sonsofphp.com/components/attribute"
topics = ["sonsofphp", "sons-of-php", "php", "attribute"]
},
cache = {
name = "cache"
description = "[read-only] Cache component"
homepage_url = "https://docs.sonsofphp.com/components/cache"
topics = ["sonsofphp", "sons-of-php", "php", "psr-6", "psr-16", "cache", "simple-cache", "cache-implementation"]
},
clock = {
name = "clock"
description = "[read-only] Lightweight clock implementation to abstract away using PHP's DateTime objects"
homepage_url = "https://docs.sonsofphp.com/components/clock"
topics = ["sonsofphp", "sons-of-php", "clock", "date", "datetime", "php", "php-clock", "php-library", "psr-20", "time"]
},
container = {
name = "container"
description = "[read-only] Container Component (PSR-11)"
homepage_url = "https://docs.sonsofphp.com/components/container"
topics = ["sonsofphp", "sons-of-php", "php", "container", "psr-11", "psr11"]
},
cookie = {
name = "cookie"
description = "[read-only] Cookie Component"
homepage_url = "https://docs.sonsofphp.com/components/cookie"
topics = ["sonsofphp", "sons-of-php", "php", "cookie"]
},
cqrs = {
name = "cqrs"
description = "[read-only] CQRS to help get you up and running quickly"
homepage_url = "https://docs.sonsofphp.com/components/cqrs"
topics = ["sonsofphp", "sons-of-php", "command-query-response-segregation", "cqrs", "php", "php-cqrs"]
},
event_dispatcher = {
name = "event-dispatcher"
description = "[read-only] Event Dispatcher Component"
homepage_url = "https://docs.sonsofphp.com/components/event-dispatcher"
topics = ["sonsofphp", "sons-of-php", "event-dispatcher", "php", "php-library", "psr-14"]
},
event_sourcing = {
name = "event-sourcing"
description = "[read-only] event sourcing component"
homepage_url = "https://docs.sonsofphp.com/components/event-sourcing"
topics = ["sonsofphp", "sons-of-php", "event-sourcing", "event-store", "php", "php-event-sourcing", "php-library"]
},
event_sourcing_doctrine = {
name = "event-sourcing-doctrine"
description = "[read-only] Provides additional functionality to sonsofphp/event-sourcing package"
homepage_url = "https://docs.sonsofphp.com/components/event-sourcing"
topics = ["sonsofphp", "sons-of-php", "doctrine-dbal", "doctrine-orm", "event-sourcing", "php"]
},
feature_toggle = {
name = "feature-toggle"
description = "[read-only] Feature Toggles for PHP"
homepage_url = "https://docs.sonsofphp.com/components/feature-toggle"
topics = ["sonsofphp", "sons-of-php", "feature-flags", "feature-toggles", "php", "php-library", "toggles"]
},
filesystem = {
name = "filesystem"
description = "[read-only] Abstract Filesystem that can be used with various services"
homepage_url = "https://docs.sonsofphp.com/components/filesystem"
topics = ["sonsofphp", "sons-of-php", "php", "php-library", "filesystem", "virtual-filesystem"]
},
gateway = {
name = "gateway"
description = "[read-only] Gateway"
homepage_url = "https://docs.sonsofphp.com/components/gateway"
topics = ["sonsofphp", "sons-of-php", "php", "php-library", "gateway", "payment-processing"]
},
http_client = {
name = "http-client"
description = "[read-only] http-client component"
homepage_url = "https://docs.sonsofphp.com/components/http-client"
topics = ["sonsofphp", "sons-of-php", "php", "php-library", "psr-18", "http-client"]
},
http_factory = {
name = "http-factory"
description = "[read-only] http-factory component"
homepage_url = "https://docs.sonsofphp.com/components/http-factory"
topics = ["sonsofphp", "sons-of-php", "php", "php-library", "psr-17", "http-factory"]
},
http-handler = {
name = "http-handler"
description = "[read-only] HttpHandler component"
homepage_url = "https://docs.sonsofphp.com/components/http-handler"
topics = ["sonsofphp", "sons-of-php", "php", "psr-15", "http-handler"]
},
http_message = {
name = "http-message"
description = "[read-only] http-message component"
homepage_url = "https://docs.sonsofphp.com/components/http-message"
topics = ["sonsofphp", "sons-of-php", "php", "php-library", "psr-7", "http-message"]
},
json = {
name = "json"
description = "[read-only] Provides json wrapper"
homepage_url = "https://docs.sonsofphp.com/components/json"
topics = ["sonsofphp", "sons-of-php", "php", "json", "json-decoder", "json-encoder"]
},
link = {
name = "link"
description = "[read-only] Link Component (PSR-13)"
homepage_url = "https://docs.sonsofphp.com/components/link"
topics = ["sonsofphp", "sons-of-php", "php", "psr-13"]
},
logger = {
name = "logger"
description = "[read-only] PHP Logger (PSR-3 Compatible)"
homepage_url = "https://docs.sonsofphp.com/components/logger"
topics = ["sonsofphp", "sons-of-php", "php", "psr-3", "logger"]
},
mailer = {
name = "mailer"
description = "[read-only] Mailer Component"
homepage_url = "https://docs.sonsofphp.com/components/mailer"
topics = ["sonsofphp", "sons-of-php", "php", "mailer"]
},
money = {
name = "money"
description = "[read-only] Use when dealing with Money in PHP"
homepage_url = "https://docs.sonsofphp.com/components/money"
topics = ["sonsofphp", "sons-of-php", "currencies", "currency", "iso-4217", "library", "monetary", "money", "php", "php-money"]
},
pager = {
name = "pager"
description = "[read-only] Pager Component"
homepage_url = "https://docs.sonsofphp.com/components/pager"
topics = ["sonsofphp", "sons-of-php", "php", "php-pager", "pager", "pagination"]
},
registry = {
name = "registry"
description = "[read-only] Registry Component"
homepage_url = "https://docs.sonsofphp.com/components/registry"
topics = ["sonsofphp", "sons-of-php", "php", "registry"]
},
router = {
name = "router"
description = "[read-only] Router Component"
homepage_url = "https://docs.sonsofphp.com/components/router"
topics = ["sonsofphp", "sons-of-php", "php", "router"]
},
search = {
name = "search"
description = "[read-only] Search Component"
homepage_url = "https://docs.sonsofphp.com/components/search"
topics = ["sonsofphp", "sons-of-php", "php", "php-search"]
},
session = {
name = "session"
description = "[read-only] Session Component"
homepage_url = "https://docs.sonsofphp.com/components/session"
topics = ["sonsofphp", "sons-of-php", "php", "session"]
},
state-machine = {
name = "state-machine"
description = "[read-only] State Machine Component"
homepage_url = "https://docs.sonsofphp.com/components/state-machine"
topics = ["sonsofphp", "sons-of-php", "php", "state-machine"]
},
stdlib = {
name = "stdlib"
description = "[read-only] Standard Library"
homepage_url = "https://docs.sonsofphp.com/components/stdlib"
topics = ["sonsofphp", "sons-of-php", "php", "stdlib"]
},
user-agent = {
name = "user-agent"
description = "[read-only] User Agent"
homepage_url = "https://docs.sonsofphp.com/components/user-agent"
topics = ["sonsofphp", "sons-of-php", "php", "useragent", "user-agent"]
},
validator = {
name = "validator"
description = "[read-only] Validator"
homepage_url = "https://docs.sonsofphp.com/components/validator"
topics = ["sonsofphp", "sons-of-php", "php", "validator"]
},
version = {
name = "version"
description = "[read-only] Compare and manage versions using the semver standard"
homepage_url = "https://docs.sonsofphp.com/components/version"
topics = ["sonsofphp", "sons-of-php", "php", "semver", "version", "version-parser"]
},
# Contracts
attribute-contract = {
name = "attribute-contract"
description = "[read-only] Attribute Contract"
homepage_url = "https://docs.sonsofphp.com/contracts/attribute"
topics = ["sonsofphp", "sons-of-php", "php", "attribute"]
},
cookie-contract = {
name = "cookie-contract"
description = "[read-only] Cookie Contract"
homepage_url = "https://docs.sonsofphp.com/contracts/cookie"
topics = ["sonsofphp", "sons-of-php", "php", "cookie"]
},
common_contract = {
name = "common-contract"
description = "[read-only] Generic PHP Interfaces"
homepage_url = "https://docs.sonsofphp.com/contracts/common"
topics = ["sonsofphp", "sons-of-php", "php", "stdlib"]
},
cqrs_contract = {
name = "cqrs-contract"
description = "[read-only] CQRS Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/cqrs"
topics = ["sonsofphp", "sons-of-php", "php", "cqrs"]
},
event_sourcing_contract = {
name = "event-sourcing-contract"
description = "[read-only] Event Sourcing Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/event-sourcing"
topics = ["sonsofphp", "sons-of-php", "php", "event-sourcing"]
},
feature_toggle_contract = {
name = "feature-toggle-contract"
description = "[read-only] Feature Toggle Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/feature-toggle"
topics = ["sonsofphp", "sons-of-php", "php", "feature-toggle"]
},
filesystem_contract = {
name = "filesystem-contract"
description = "[read-only] Virtual Filesystem Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/filesystem"
topics = ["sonsofphp", "sons-of-php", "php", "virtual-filesystem"]
},
gateway-contract = {
name = "gateway-contract"
description = "[read-only] Gateway Contract"
homepage_url = "https://docs.sonsofphp.com/contracts/gateway"
topics = ["sonsofphp", "sons-of-php", "php", "gateway", "payment-processing"]
},
http-handler-contract = {
name = "http-handler-contract"
description = "[read-only] Http Handler Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/http-handler"
topics = ["sonsofphp", "sons-of-php", "php", "http-handler"]
},
logger_contract = {
name = "logger-contract"
description = "[read-only] Logger Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/logger"
topics = ["sonsofphp", "sons-of-php", "php", "logger"]
},
mailer-contract = {
name = "mailer-contract"
description = "[read-only] Mailer Contact"
homepage_url = "https://docs.sonsofphp.com/contracts/mailer"
topics = ["sonsofphp", "sons-of-php", "php", "mailer"]
},
money_contract = {
name = "money-contract"
description = "[read-only] Money Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/money"
topics = ["sonsofphp", "sons-of-php", "php", "money"]
},
pager-contract = {
name = "pager-contract"
description = "[read-only] Pager Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/pager"
topics = ["sonsofphp", "sons-of-php", "php", "pager", "pagination"]
},
registry-contract = {
name = "registry-contract"
description = "[read-only] Registry Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/registry"
topics = ["sonsofphp", "sons-of-php", "php", "registry"]
},
router-contract = {
name = "router-contract"
description = "[read-only] Router Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/router"
topics = ["sonsofphp", "sons-of-php", "php", "router"]
},
search-contract = {
name = "search-contract"
description = "[read-only] Search Contact"
homepage_url = "https://docs.sonsofphp.com/contracts/search"
topics = ["sonsofphp", "sons-of-php", "php", "search"]
},
session-contract = {
name = "session-contract"
description = "[read-only] Session Contact"
homepage_url = "https://docs.sonsofphp.com/contracts/session"
topics = ["sonsofphp", "sons-of-php", "php", "session"]
},
state-machine-contract = {
name = "state-machine-contract"
description = "[read-only] State Machine Contact"
homepage_url = "https://docs.sonsofphp.com/contracts/state-machine"
topics = ["sonsofphp", "sons-of-php", "php", "state-machine"]
},
stdlib-contract = {
name = "stdlib-contract"
description = "[read-only] Standard Library Contact"
homepage_url = "https://docs.sonsofphp.com/contracts/stdlib"
topics = ["sonsofphp", "sons-of-php", "php", "stdlib"]
},
user-agent-contract = {
name = "user-agent-contract"
description = "[read-only] User Agent Contact"
homepage_url = "https://docs.sonsofphp.com/components/user-agent"
topics = ["sonsofphp", "sons-of-php", "php", "useragent"]
},
validator-contract = {
name = "validator-contract"
description = "[read-only] Validator Contract"
homepage_url = "https://docs.sonsofphp.com/contracts/validator"
topics = ["sonsofphp", "sons-of-php", "php", "validator"]
},
version_contract = {
name = "version-contract"
description = "[read-only] Version Contacts"
homepage_url = "https://docs.sonsofphp.com/contracts/version"
topics = ["sonsofphp", "sons-of-php", "php", "version"]
},
}
}
variable "github_sonsofphp_labels" {
type = map(object({
name = string
color = string
#description = string
}))
default = {
Attribute = {
name = "Attribute"
color = "5319e7"
},
Cache = {
name = "Cache"
color = "5319e7"
},
Clock = {
name = "Cache"
color = "5319e7"
},
Container = {
name = "Container"
color = "5319e7"
},
CQRS = {
name = "CQRS"
color = "5319e7"
},
Cookie = {
name = "Cookie"
color = "5319e7"
},
EventDispatcher = {
name = "EventDispatcher"
color = "5319e7"
},
EventSourcing = {
name = "EventSourcing"
color = "5319e7"
},
FeatureToggle = {
name = "FeatureToggle"
color = "5319e7"
},
Gateway = {
name = "Gateway"
color = "5319e7"
},
HttpClient = {
name = "HttpClient"
color = "5319e7"
},
HttpFactory = {
name = "HttpFactory"
color = "5319e7"
},
HttpHandler = {
name = "HttpHandler"
color = "5319e7"
},
HttpMessage = {
name = "HttpMessage"
color = "5319e7"
},
JSON = {
name = "JSON"
color = "5319e7"
},
Link = {
name = "Link"
color = "5319e7"
},
Logger = {
name = "Logger"
color = "5319e7"
},
Mailer = {
name = "Mailer"
color = "5319e7"
},
MessageBus = {
name = "MessageBus"
color = "5319e7"
},
Money = {
name = "Money"
color = "5319e7"
},
Pager = {
name = "Pager"
color = "5319e7"
},
Router = {
name = "Router"
color = "5319e7"
},
Search = {
name = "Search"
color = "5319e7"
},
Session = {
name = "Session"
color = "5319e7"
},
UserAgent = {
name = "UserAgent"
color = "5319e7"
},
Validator = {
name = "Validator"
color = "5319e7"
},
Version = {
name = "Version"
color = "5319e7"
},
}
}
terraform {
cloud {
organization = "SonsOfPHP"
workspaces {
name = "gh-actions"
}
}
required_providers {
github = {
source = "integrations/github"
version = "~>5.0"
}
}
}
provider "github" {
owner = "SonsOfPHP"
token = var.github_token
}
###
# Organizational Settings
# @see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/organization_settings
#resource "github_organization_settings" "sonsofphp" {
#}
###
# Teams
# @see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team
###
#import {
# to = github_team.hang_arounds
# id = "Hang Arounds"
#}
#resource "github_team" "hang_arounds" {
# name = "Hang Arounds"
# privacy = "closed"
#}
#import {
# to = github_team.prospects
# id = "Prospects"
#}
resource "github_team" "prospects" {
name = "Prospects"
privacy = "closed"
}
#import {
# to = github_team.members
# id = "Members"
#}
resource "github_team" "members" {
name = "Members"
privacy = "closed"
}
#import {
# to = github_team.security
# id = "Security"
#}
resource "github_team" "security" {
name = "Security"
description = "Individuals responsible for the security of all things"
privacy = "closed"
parent_team_id = github_team.members.id
}
#import {
# to = github_team.terraform
# id = "Terraform"
#}
resource "github_team" "terraform" {
name = "Terraform"
privacy = "closed"
parent_team_id = github_team.members.id
}
###
# Repositories
# @see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository
###
# Mother Repo
#import {
# to = github_repository.sonsofphp
# id = "sonsofphp"
#}
resource "github_repository" "sonsofphp" {
name = "sonsofphp"
description = "Mother Repository - All Development is done here"
homepage_url = "https://docs.sonsofphp.com"
# MAX of 20
topics = [
"hacktoberfest",
"sons-of-php",
"sonsofphp",
"php-contract",
"php-library",
"php8",
"bard-php",
"prospect-php",
"cookie",
"cqrs",
"event-sourcing",
"feature-toggle",
"filesystem",
"link",
"logger",
"money",
"pager",
"state-machine",
]
visibility = "public"
vulnerability_alerts = true
delete_branch_on_merge = true
has_downloads = true
has_issues = true
has_projects = false
has_wiki = false
allow_merge_commit = false
allow_rebase_merge = false
has_discussions = true
allow_squash_merge = true
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "BLANK"
pages {
cname = "docs.sonsofphp.com"
source {
branch = "gh-pages"
path = "/"
}
}
}
###
# Labels for the Mother Repo
# @see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/issue_label
#import {
# for_each = var.github_sonsofphp_labels
# to = github_issue_label.sonsofphp[each.key]
# id = each.key
#}
resource "github_issue_label" "sonsofphp" {
for_each = var.github_sonsofphp_labels
repository = "sonsofphp"
name = each.key
color = each.value.color
#description = each.value.description
}
# Read Only Repositories for projects
#import {
# for_each = var.github_readonly_repos
# to = github_repository.readonly[each.key]
# id = each.value.name
#}
resource "github_repository" "readonly" {
for_each = var.github_readonly_repos
name = each.value.name
description = each.value.description
homepage_url = each.value.homepage_url
topics = each.value.topics
visibility = "public"
has_issues = false
has_projects = false
has_wiki = false
has_downloads = false
}
# Additional Repositories
#resource "github_repository" "symfony_sop" {
# name = "symfony-sop"
# description = "Symfony Template Repository for base projects"
# homepage_url = "https://docs.sonsofphp.com"
# visibility = "public"
# has_issues = true
# has_projects = false
# has_wiki = false
# has_downloads = false
# is_template = true
# vulnerability_alerts = true
# allow_auto_merge = true
# delete_branch_on_merge = true
# topics = [
# "domain-driven-design",
# "hacktoberfest",
# "hexagonal-architecture",
# "symfony",
# "template",
# ]
#}