Need rest API endpoint to detect pull request merge conflicts before creating pull request as below , so if we are going to take bitbucket UI automatically detect conflicts file before creation PR.
Please let me know which endpoint should I use to detect conflicts before creating PR.
Hey @mohan yadav ,
thank you for reaching out to Community!
You should be able to "preview" a file conflict in a merge by using the diffstat endpoint and comparing the two branches of the pull request:
In the path of the URL you can either provide the commits you wish to compare, or the branch names.
For the conflicted files, the output will show the field "status": "merge conflict."
You can find more details and examples in this other similar question here in Community:
Thank you, @mohan yadav !
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.