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

Option to decline PR whose source branch is deleted

    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

      If a user try to decline a PR whose source branch is deleted, the process just hangs. As a workaround users will have to use API or reach out to support to get the PR declined. Raising this request to allow users to decline such PRs from the UI instead of reaching out to support for help.

      Workaround:
      API to decline such PR

      https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/decline 

       
       An example API call using CURL would be:

      curl --request POST \
        --url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/decline' \
        --header 'Authorization: Bearer <access_token>' \
        --header 'Accept: application/json'
      

      Reference - Decline a pull request (API documentation) 

      Attachments

        Activity

          People

            Unassigned Unassigned
            f6d4dc412ba0 Lavanya K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: