Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3644

Rest and service API to manage pull request restrictions

XMLWordPrintable

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      As a stash-administrator
      I want to use the REST API to configure the pull request
      So that I can ensure the proper configuration is made across all repositories

      Example:

      URI /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/settings/pull-requests
      Get Returns current configuration; ie "0 approvers, 2 builds"
      Post set the configuration

      Possible PR configurations:

      • The number of required approvals before a PR can be merged.
      • The number of required builds before a PR can be merged.
      • Unapprove all reviewers when the source branch of a pull request changes (when Stash Auto Unapprove Plugin ins installed)

      When adding a REST endpoint, a corresponding Java service should also be exposed.

              spetrucev Stefan
              e857e5da5590 Toby Jackson
              Votes:
              41 Vote for this issue
              Watchers:
              48 Start watching this issue

                Created:
                Updated:
                Resolved: