Skip to content

Commit

Permalink
feat: add tilburg repository with developers from Acato
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert authored May 3, 2024
1 parent cce8050 commit 2016903
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 0 deletions.
28 changes: 28 additions & 0 deletions team-members.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,31 @@ resource "github_team_members" "gebruikersonderzoeken" {
username = data.github_user.jeroenduc.username
}
}

resource "github_team_members" "tilburg-acato-committer" {
team_id = github_team.tilburg.id

members {
username = data.github_user.acato-joost.username
}

members {
username = data.github_user.acato-mark.username
}

members {
username = data.github_user.acato-jorik-bosman.username
}

members {
username = data.github_user.acato-cguijt.username
}
}

resource "github_team_members" "tilburg-acato-maintainer" {
team_id = github_team.tilburg.id

members {
username = data.github_user.acato-jorik-bosman.username
}
}
17 changes: 17 additions & 0 deletions team.tf
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,20 @@ resource "github_team" "gravityforms" {
description = "Gravityforms community"
privacy = "closed"
}

resource "github_team" "tilburg" {
name = "tilburg"
privacy = "closed"
}

resource "github_team" "tilburg-acato-committer" {
name = "tilburg-acato"
parent_team_id = github_team.tilburg.id
privacy = "closed"
}

resource "github_team" "tilburg-acato-maintainer" {
name = "tilburg-acato-maintainer"
parent_team_id = github_team.tilburg-acato-committer.id
privacy = "closed"
}
5 changes: 5 additions & 0 deletions terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ resource "github_repository_collaborators" "terraform" {
team_id = github_team.logius-maintainer.slug
}

team {
permission = "push"
team_id = github_team.tilburg-acato-maintainer.slug
}

# Restrict pushes to infrastructure as code to admins and maintainers

team {
Expand Down
109 changes: 109 additions & 0 deletions tilburg.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
resource "github_repository" "tilburg" {
name = "tilburg"
description = "Work in Progress: Tilburg Design System based on the NL Design System architecture."
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 = true
has_wiki = false
vulnerability_alerts = true
homepage_url = "https://nl-design-system.github.io/tilburg/"
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 {
source {
branch = "gh-pages"
path = "/"
}
}

lifecycle {
prevent_destroy = true
}
}

resource "github_branch_protection" "tilburg-main" {
repository_id = github_repository.tilburg.node_id

pattern = "main"
enforce_admins = false
allows_deletions = false
require_signed_commits = false
required_linear_history = true
require_conversation_resolution = true
allows_force_pushes = false
lock_branch = false

restrict_pushes {
blocks_creations = false
push_allowances = [
"/${data.github_user.nl-design-system-ci.username}",
"nl-design-system/${github_team.kernteam-maintainer.name}",
"nl-design-system/${github_team.tilburg-acato-committer.name}",
]
}

required_status_checks {
strict = false
contexts = ["build", "install", "lint", "test"]
}

required_pull_request_reviews {
dismiss_stale_reviews = true
restrict_dismissals = false
pull_request_bypassers = [
"/${data.github_user.nl-design-system-ci.username}",
]
}
}

resource "github_branch_protection" "tilburg-gh-pages" {
repository_id = github_repository.tilburg.node_id

pattern = "gh-pages"
enforce_admins = true
allows_deletions = false
required_linear_history = true
allows_force_pushes = false
}

resource "github_repository_collaborators" "tilburg" {
repository = github_repository.tilburg.name

team {
permission = "admin"
team_id = github_team.kernteam-admin.slug
}

team {
permission = "maintain"
team_id = github_team.kernteam-maintainer.slug
}

team {
permission = "push"
team_id = github_team.kernteam-committer.slug
}

team {
permission = "triage"
team_id = github_team.kernteam-triage.slug
}

team {
permission = "push"
team_id = github_team.tilburg-acato-committer.slug
}
}
15 changes: 15 additions & 0 deletions user.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,18 @@ data "github_user" "yolijn" {
username = "Yolijn"
}

data "github_user" "acato-jorik-bosman" {
username = "jorik-acato"
}

data "github_user" "acato-joost" {
username = "joostacato"
}

data "github_user" "acato-mark" {
username = "markacato"
}

data "github_user" "acato-cguijt" {
username = "cguijt"
}

0 comments on commit 2016903

Please sign in to comment.