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

Resolve merge conflicts when merging a PR via API

XMLWordPrintable

    • 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.

      Problem Definition

      Bitbucket Cloud provides an API endpoint for merging a PR:

      If a PR contains conflicts, they need to be resolved locally in a clone of the repo and then pushed to Bitbucket Cloud for the merge to be possible.

      This makes it more difficult to automate merging PRs with conflicts.

      Suggested Solution

      Users would like to be able to resolve merge conflicts with either --ours or --theirs strategy when merging a PR via API.

      There is an existing feature request for the ability to do this in the UI: https://jira.atlassian.com/browse/BCLOUD-12935

      This feature request is for the ability to do this with the API.

      Workaround

      The workaround is to clone the repo, resolve the conflicts locally, push them to Bitbucket and then merge:

      https://support.atlassian.com/bitbucket-cloud/docs/resolve-merge-conflicts/

              Unassigned Unassigned
              tboudale Theodora Boudale (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: