Skip to content

Commit

Permalink
feat: mendix repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Nov 20, 2024
1 parent 175c84a commit e64d813
Showing 1 changed file with 118 additions and 0 deletions.
118 changes: 118 additions & 0 deletions mendix.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
resource "github_repository" "mendix" {
name = "mendix"
description = "NL Design System Mendix demo project"
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/mendix/"
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "PR_BODY"
topics = ["nl-design-system"]

security_and_analysis {
secret_scanning {
status = "enabled"
}
secret_scanning_push_protection {
status = "enabled"
}
}

pages {
build_type = "workflow"
}

lifecycle {
prevent_destroy = true
}
}

resource "github_repository_ruleset" "mendix-main" {
name = "main"
repository = github_repository.mendix.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

required_status_checks {
required_check {
context = "build"
}
required_check {
context = "install"
}
required_check {
context = "lint"
}
required_check {
context = "test"
}
}
}

bypass_actors {
actor_id = github_team.kernteam-ci.id
actor_type = "Team"
bypass_mode = "always"
}
}

resource "github_repository_collaborators" "mendix" {
repository = github_repository.mendix.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 = "triage"
team_id = github_team.kernteam-dependabot.slug
}

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

team {
permission = "push"
team_id = github_team.frameless.slug
}
}

0 comments on commit e64d813

Please sign in to comment.