lvermeulen / Bitbucket.Net

C# client for Atlassian Bitbucket Server
MIT License
32 stars 18 forks source link

Determine conflict-status of a PR #5

Closed fgather closed 5 years ago

fgather commented 5 years ago

Hi, thanks for the great library!

According to https://community.atlassian.com/t5/Bitbucket-questions/REST-API-how-to-check-if-a-PR-has-conflict-s/qaq-p/716529 there is a really helpful api endpoint to determine the mergeability of a pull request: https://bitbucket.org/api/1.0/repositories///pullrequests//conflict-status

Do you have any plans on integrating that?

Thanks in advance!

lvermeulen commented 5 years ago

That's a Bitbucket Cloud endpoint. :-)

You can check the mergeability of a pull request with the GetPullRequestMergeStateAsync() method. Hope that helps.