Skip to content

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

Closed

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

Activity

  1. denniswebb commented on Oct 4, 2017

    @denniswebb
    Contributor

    I'm working on a PR to support this right now.

  2. added
    Type: Feature
    on Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions