Skip to content

Add support for "require review from code owners" #50

@thomasbrezinski

Description

@thomasbrezinski

GitHub added the ability to require reviews from code owners in July. It doesn't look like support for this has made it into terraform-provider-github quite yet.

It seems like a simple update to the PullRequestReviewsEnforcement and PullRequestReviewsEnforcementRequest to handle this additional field.

Terraform Version

Terraform v0.10.7

Affected Resource(s)

github_branch_protection

Terraform Configuration Files

Ideally, this would be supported.

resource "github_branch_protection" "foo_master" {
  repository = "foo"
  branch = "master"

  required_pull_request_reviews {
    require_code_owner_reviews = true
  }
}

References

https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions