Skip to content

Commit c2ecb01

Browse files
Robbertmatijs
authored andcommitted
feat: add tiptap repository
1 parent 92ff8ea commit c2ecb01

File tree

4 files changed

+167
-1
lines changed

4 files changed

+167
-1
lines changed

team-members.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,3 +542,19 @@ resource "github_team_members" "nora-committer" {
542542
username = data.github_user.RGRMdesign.username
543543
}
544544
}
545+
546+
resource "github_team_members" "tiptap-committer" {
547+
team_id = github_team.tiptap-committer.id
548+
549+
members {
550+
username = data.github_user.ali-kadhim.username
551+
}
552+
553+
members {
554+
username = data.github_user.danny-hoek.username
555+
}
556+
557+
members {
558+
username = data.github_user.stephan-meijer.username
559+
}
560+
}

team.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,15 @@ resource "github_team" "nora-committer" {
491491
parent_team_id = github_team.nora.id
492492
privacy = "closed"
493493
}
494+
495+
resource "github_team" "tiptap" {
496+
name = "tiptap"
497+
privacy = "closed"
498+
description = "Tiptap Editor contributors"
499+
}
500+
501+
resource "github_team" "tiptap-committer" {
502+
name = "tiptap-committer"
503+
parent_team_id = github_team.tiptap.id
504+
privacy = "closed"
505+
}

tiptap.tf

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
resource "github_repository" "tiptap" {
2+
name = "tiptap"
3+
description = "NL Design System Tiptap Editor packages"
4+
allow_merge_commit = false
5+
allow_rebase_merge = true
6+
allow_squash_merge = true
7+
allow_auto_merge = true
8+
delete_branch_on_merge = true
9+
has_issues = true
10+
has_downloads = false
11+
has_projects = false
12+
has_wiki = false
13+
vulnerability_alerts = true
14+
homepage_url = "https://nl-design-system.github.io/tiptap/"
15+
squash_merge_commit_title = "PR_TITLE"
16+
squash_merge_commit_message = "PR_BODY"
17+
topics = ["nl-design-system"]
18+
19+
template {
20+
owner = "nl-design-system"
21+
repository = "example"
22+
include_all_branches = false
23+
}
24+
25+
security_and_analysis {
26+
secret_scanning {
27+
status = "enabled"
28+
}
29+
secret_scanning_push_protection {
30+
status = "enabled"
31+
}
32+
}
33+
34+
pages {
35+
build_type = "workflow"
36+
}
37+
38+
lifecycle {
39+
prevent_destroy = true
40+
}
41+
}
42+
43+
resource "github_repository_ruleset" "tiptap-main" {
44+
name = "main"
45+
repository = github_repository.tiptap.name
46+
target = "branch"
47+
enforcement = "active"
48+
49+
conditions {
50+
ref_name {
51+
include = ["refs/heads/main"]
52+
exclude = []
53+
}
54+
}
55+
56+
rules {
57+
pull_request {
58+
dismiss_stale_reviews_on_push = true
59+
required_approving_review_count = 1
60+
required_review_thread_resolution = true
61+
}
62+
required_linear_history = true
63+
64+
required_status_checks {
65+
required_check {
66+
context = "build"
67+
}
68+
required_check {
69+
context = "install"
70+
}
71+
required_check {
72+
context = "lint"
73+
}
74+
required_check {
75+
context = "test"
76+
}
77+
}
78+
}
79+
80+
bypass_actors {
81+
actor_id = github_team.kernteam-ci.id
82+
actor_type = "Team"
83+
bypass_mode = "always"
84+
}
85+
}
86+
87+
resource "github_repository_collaborators" "tiptap" {
88+
repository = github_repository.tiptap.name
89+
90+
team {
91+
permission = "admin"
92+
team_id = github_team.kernteam-admin.slug
93+
}
94+
95+
team {
96+
permission = "maintain"
97+
team_id = github_team.kernteam-maintainer.slug
98+
}
99+
100+
team {
101+
permission = "push"
102+
team_id = github_team.kernteam-committer.slug
103+
}
104+
105+
team {
106+
permission = "triage"
107+
team_id = github_team.kernteam-triage.slug
108+
}
109+
110+
team {
111+
permission = "triage"
112+
team_id = github_team.kernteam-dependabot.slug
113+
}
114+
}
115+
116+
117+
resource "vercel_project" "tiptap" {
118+
name = github_repository.tiptap.name
119+
output_directory = "packages/storybook/dist/"
120+
ignore_command = "[[ $(git log -1 --pretty=%an) == 'dependabot[bot]' ]]"
121+
122+
git_repository = {
123+
type = "github"
124+
repo = "${data.github_organization.nl-design-system.orgname}/${github_repository.tiptap.name}",
125+
}
126+
127+
vercel_authentication = {
128+
deployment_type = "none"
129+
}
130+
}

user.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,12 @@ data "github_user" "RGRMdesign" {
256256

257257
data "github_user" "sjimbonator" {
258258
username = "sjimbonator"
259-
}
259+
}
260+
261+
data "github_user" "danny-hoek" {
262+
username = "ZwaarContrast"
263+
}
264+
265+
data "github_user" "stephan-meijer" {
266+
username = "StephanMeijer"
267+
}

0 commit comments

Comments
 (0)