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

Bitbucket pull request creation API should have an option to set the owner


    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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.

      Right now we use the API here to generate pull requests automatically as part of our ci workflow: https://developer.atlassian.com/static/rest/bitbucket-server/4.10.1/bitbucket-rest.html#idp896512

      This works great, but due to the way we’re set up, we have an automation user (cl_buildbot) that supplies its credentials to generate this pull request. Because of the way Bitbucket works, this means that cl_buildbot is also the owner of the pull request, even though it is creating the pull request on behalf of someone else.

      This makes managing PRs a little difficult on Stash, since they’re all generated by one user.

      We would rather not manually generate pull requests as this is inconvenient.

      We would also really rather not have to have each submitter supply credentials to the buildbot (for authenticating via the API) as this is both very inconvenient and not so secure.

      So simply allowing us to set the owner at creation time (or after the fact) would be a major improvement.

            Unassigned Unassigned
            4c762d6af390 Corey Steele
            0 Vote for this issue
            3 Start watching this issue