From 1be203768827ec32d38de917a341c8053c1725b2 Mon Sep 17 00:00:00 2001 From: matijs Date: Thu, 23 Jan 2025 11:19:03 +0100 Subject: [PATCH] feat: add wcag-statistieken The existing repostiory was imported. This commit adds the repo as code and updates some settings. --- wcag-statistieken.tf | 93 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 wcag-statistieken.tf diff --git a/wcag-statistieken.tf b/wcag-statistieken.tf new file mode 100644 index 0000000..4045f6a --- /dev/null +++ b/wcag-statistieken.tf @@ -0,0 +1,93 @@ +resource "github_repository" "wcag-statistieken" { + name = "wcag-statistieken" + description = "" + 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 = true + vulnerability_alerts = true + homepage_url = "https://nl-design-system.github.io/wcag-statistieken/" + squash_merge_commit_title = "PR_TITLE" + squash_merge_commit_message = "PR_BODY" + topics = [] + + security_and_analysis { + secret_scanning { + status = "enabled" + } + secret_scanning_push_protection { + status = "enabled" + } + } + + pages { + build_type = "workflow" + + source { + branch = "main" + path = "/" + } + } + + lifecycle { + prevent_destroy = true + } +} + +resource "github_repository_ruleset" "wcag-statistieken-main" { + name = "main" + repository = github_repository.wcag-statistieken.name + target = "branch" + enforcement = "active" + + conditions { + ref_name { + include = ["refs/heads/main"] + exclude = [] + } + } + + rules { + pull_request { + dismiss_stale_reviews_on_push = true + required_approving_review_count = 1 + required_review_thread_resolution = true + } + required_linear_history = true + } + + bypass_actors { + actor_id = github_team.kernteam-ci.id + actor_type = "Team" + bypass_mode = "always" + } +} + +resource "github_repository_collaborators" "wcag-statistieken" { + repository = github_repository.wcag-statistieken.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.expertteam-digitale-toegankelijkheid-committer.id + } + + team { + permission = "triage" + team_id = github_team.expertteam-digitale-toegankelijkheid-triage.id + } +}