Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions terraform/github/branch_protection.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "github_branch_protection" "hackathon_master" {
repository = "hackathon"
branch = "master"
repository_id = "hackathon"
pattern = "master"
enforce_admins = false

required_status_checks {}
Expand All @@ -9,33 +9,31 @@ resource "github_branch_protection" "hackathon_master" {
dismiss_stale_reviews = false
}

restrictions {
teams = ["imas_hack"]
}
push_restrictions = [
"imas_hack"
]
}

resource "github_branch_protection" "mastodon_imastodon" {
repository = "mastodon"
branch = "imastodon"
repository_id = "mastodon"
pattern = "imastodon"
enforce_admins = false

required_status_checks {
strict = false
contexts = [
"ci/circleci: test-ruby2.6",
"ci/circleci: test-ruby2.6",
]
}

required_pull_request_reviews {
dismiss_stale_reviews = false
}

restrictions {}
}

resource "github_branch_protection" "imasparql_master" {
repository = "imasparql"
branch = "master"
repository_id = "imasparql"
pattern = "master"
enforce_admins = false

required_status_checks {
Expand All @@ -48,6 +46,4 @@ resource "github_branch_protection" "imasparql_master" {
require_code_owner_reviews = true
required_approving_review_count = 1
}

restrictions {}
}