Rest and service API to manage pull request restrictions

XMLWordPrintable

      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.

            Assignee:
            Stefan
            Reporter:
            Toby Jackson
            Votes:
            41 Vote for this issue
            Watchers:
            48 Start watching this issue

              Created:
              Updated:
              Resolved: