Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Branch restriction require_default_reviewer_approvals_to_merge is not available #51

Open
LuisPiedra opened this issue Mar 3, 2020 · 0 comments

Comments

@LuisPiedra
Copy link

There is a new merge check available in Bitbucket Cloud, but it is not available in the provider.

Terraform Version

Terraform v0.12.20

Affected Resource(s)

bitbucket_branch_restriction

Terraform Configuration Files

resource "bitbucket_branch_restriction" "require_default_reviewer_approvals_to_merge" {
  owner      = "myteam"
  repository = "myrepo"

  pattern = "master"

  kind = "require_default_reviewer_approvals_to_merge"
}

Expected Behavior

A new branch restriction is created

Actual Behavior

Error: expected kind to be one of [require_tasks_to_be_completed require_passing_builds_to_merge force require_all_dependencies_merged push require_approvals_to_merge enforce_merge_checks restrict_merges reset_pullrequest_approvals_on_change delete], got require_default_reviewer_approvals_to_merge

  on provider.tf line 93, in resource "bitbucket_branch_restriction" "require_default_reviewer_approvals_to_merge":
  93: resource "bitbucket_branch_restriction" "require_default_reviewer_approvals_to_merge" {

Steps to Reproduce

  1. terraform plan

References

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/branch-restrictions/%7Bid%7D#put

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant