Is there any way we can check if the merge request can be merged or not using the GitLab APIs?
https://docs.gitlab.com/ee/api/merge_requests.html#get-single-mr API returns the “merge_status” which is set to either “can_be_merged” or “can_not_be_merged” but this only indicates if we can merge the MR cleanly or its conflicting on top of the tree. It does not consider required number of approvals, builds etc while deciding the status. So even if the MR has not got any approvals, merge_status flag is set to “can_be_merged”
Looking for a flag which I can use to check if I can merge the MR or not ( Submit button is visible or not)