Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18355

Need more fine grained mandatory PR approvals at files or directory level

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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

          Activity

            People

              Unassigned Unassigned
              7149fdc326f6 Saniket More
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: