Right now we are using API v1 and this path to get Pull Request conflict status:
repositories/{repoName}/pullrequests/{pullRequestId}/conflict-status
As API v1 is going to be discontinued, what API v2 endpoint should we use to get information if get PR has a conflict and can be merged?
Hello there Iliya!
I spoke with my colleagues over in Bitbucket about your case.
They showed me the option of using diffstat to your needs:
- Bitbucket API - diffstat
We tested it and the conflict check was there when we tried merging conflicting commits.
Let us know if this addresses your need!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is wonderful Iliya! Glad to know that this new API has what you need.
If you ever need help, come get it with us at the Community!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Diegothanks for your answer! Exactly which is the field in here that indicates whether or not there are conflicts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When hitting Get request on diffstat API, I'm only getting the differences for the PR not the merge conflicts status. In my case, the status is modified for the file having merge conflicts!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here @Diego Is there an update or alternate solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.