Details
-
Suggestion
-
Resolution: Won't Fix
Description
Currently we have set repo level mandatory PR approvers.
We have several request/usecases from our different engineering teams for a more fine grained mandatory PR approvals at files or directory level.
we had raised a support ticket for the same and got to know this feature is still not available in bitbucket. We were suggested to file a feature request for this.
https://getsupport.atlassian.com/servicedesk/customer/portal/11/BBS-102079
we want to use this feature programatically to enable PR approvers to grant/deny file/dir level permission.
Example we are looking for an api whose payload may look like as below
repo : repo-name/repo-id/repo-slug-id
inclusions : Grant PR approval permission to these file/dir paths or matching a regex expression
exclusion : Deny PR approval permission to these file/dir paths or matching a regex expression
approvers: List of approvers who these restrcition applies to.
#!json { [ { "repo": "qbol", "inclusions": [ "tapp/config/routes.rb", ], "exclusions": [] "approvers": [ "xxxxx", "yyyyy", "zzzzz", ] }, { "repo": "jenkins", "inclusions": [ "*", ], "exclusions": [] "approvers": [ "xxxxx", "yyyyy", "zzzzz", ] } ] }
Attachments
Issue Links
- mentioned in
-
Page Loading...