Skip to content

Commit

Permalink
Support terraform-provider-github v4 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
foooomio authored Dec 16, 2020
1 parent e85255a commit 1372e93
Showing 1 changed file with 10 additions and 14 deletions.
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 {}
}

0 comments on commit 1372e93

Please sign in to comment.