Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events