Skip to content

How to determine if a PR can be merged? #24504

Discussion options

You must be logged in to vote

👋 hello there and welcome to the GitHub Support Community, @xtough !

xtough:

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.

xtough:

In v4 MergeStateStatus seems to be what I am looking for. But can I also achieve the same by v3 means?

I recently answered a similar question here. I’m wondering if that helps with what you’re looking for? 💭

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Maxim-Mazurok
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment