hashicorp / terraform-provider-bitbucket

This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
32 stars 107 forks source link

Feature request: support for branch policies #44

Closed mahpatil closed 4 years ago

mahpatil commented 4 years ago

Feature request

Terraform Version

Terraform v0.12.17

Feature requested

Support for branch policies, the feature should allow creating a standard set of policy variants that can be applied at a per-repository/project level (if possible)

Bitbucket API

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

amatellanes commented 4 years ago

Hi @mahpatil,

The branch restrictions feature has just been added to the new version 1.2.0 More info here.

pjroth commented 4 years ago

@mahpatil it looks like this can be closed per @amatellanes comment that version 1.2.0 has the ability to set branch_restrictions (name per API) do you agree? Although the bitbucket website calls them "Branch Permissions" under repository settings confusingly. They seem to be the same thing though.

You stated "branch policies" however so it could be you are talking about something different than what has already been implemented?

mahpatil commented 4 years ago

Yes. Thanks @pjroth and @amatellanes