You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.