As part of the CI/CD pipeline, we want to validate whether a PR passes configured merge checks and is not in any conflict. I went through the cloud Rest documentation, but didn't find any api.
I see bitbucket ui makes a api call to /merge-restriction to get this info. Is there a similar api to consume?
If not what other alternatives I have to check whether a PR can be merged or not?