I am looking for a programmatic possibility to determine via v3 API if a PR can be merged, i.e., actually the boolean status that makes the “merge” button green or red.
For instance, PullRequest mergeable_state possible values goes in a similar direction. “mergeable” only let’s me know if the PR has no potential merge conflicts. But all the other criteria like reviews, statuses, etc. would need to be queried individually.
In v4 MergeStateStatus seems to be what I am looking for. But can I also achieve the same by v3 means?