Skip to content

Commit

Permalink
test: test branch protection without context
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmartius committed Aug 27, 2022
1 parent fd18262 commit 2df4aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/public-repository/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "repository" {
homepage_url = "https://github.com/mineiros-io"
visibility = "public"
has_issues = true
has_projects = false
has_projects = true
has_wiki = true
allow_merge_commit = true
allow_rebase_merge = false
Expand Down Expand Up @@ -55,8 +55,7 @@ module "repository" {
require_signed_commits = true

required_status_checks = {
strict = true
contexts = ["ci/travis"]
strict = true
}

required_pull_request_reviews = {
Expand Down
5 changes: 2 additions & 3 deletions test/unit-complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "repository" {
homepage_url = var.url
private = false
has_issues = var.has_issues
has_projects = var.has_projects
has_projects = true
has_wiki = var.has_wiki
allow_merge_commit = var.allow_merge_commit
allow_rebase_merge = var.allow_rebase_merge
Expand Down Expand Up @@ -94,8 +94,7 @@ module "repository" {
require_signed_commits = true

required_status_checks = {
strict = true
contexts = ["ci/travis"]
strict = true
}

required_pull_request_reviews = {
Expand Down

0 comments on commit 2df4aaf

Please sign in to comment.