I want a bitbucket rest API endpoint to check whether a pull request has conflicts or not. Please suggest me that API endpoint.
Hello @mohan yadav,
thank you for reaching out to the Community!
The following public API endpoint can be used to get the merge status if you call it without the topic query parameter
Example:
https://api.bitbucket.org/2.0/repositories/{WORKSPACE}/{REPOSITORY}/diffstat/feature..main
For the conflicted files, you will see in the output the field "status": "merge conflict".
The status "merge conflict" was not added as a status when the topic query is used because this status will be eventually removed in the future.
When that happens, a new public conflict API endpoint will be made available for customers to still have access to that information.
You can follow any changes/announcements to the API's at the official documentation below:
Thank you, @mohan yadav !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.