The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I am looking for API for conflicts.

jagadeesh
April 22, 2020

We are searching for API in which we can find that in any particular pull request there is some conflict.
Or any API from which we can find the conflict status of the pull request.

Like here there is conflict in Pull Request. So how to get that conflict or status that in this Pull Request there is some conflict
status**

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2020

Hello @jagadeesh ,

Welcome to the Community!

Here's the endpoint you need: /2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diffstat

It returns status for each file of the pull request, conflicts will have "merge conflict" status.

Hope this helps.

Cheers,
Daniil

jagadeesh
April 24, 2020

Hi Daniil,

Yes, I got it results that you shared API.

Thank you so much. It is really helped us.

 

Cheers,

Jagadeesh D.

Like Daniil Penkin likes this
TAGS
AUG Leaders

Atlassian Community Events