Documentation about "mergeable_state"



“mergeable_state” attribute seems to have many state: dirty, clean, blocked, behind…

But the documentation does not expose the complete list or explain them.

Can we have more detail on this ?


Thanks for bringing this to our attention, @sileht. I’ve created an internal issue to track getting this information properly added to the docs. In the meantime, if you have questions about a particular state or states, I’d be happy to get you some information in this thread.


I’d like some info on this. We auto merge on green and try to detect the green merge using mergeable_state. ‘unstable’ is the only one i’ve seen that has confused me. Rest seem self explanatory.


@jmilas Hi, are you still working on this issue?
I need all state information. Can you provide it for us?

My guess is:

  • clean means It can be merged without any concerns. Literally It is CLEAN.
  • behind means the branch is out-of-date.
  • dirty means there are conflicts with base branch.
  • unstable means The CI is running or failed, not success. So we need to check the state to check if it can be merged safely.

Is it right? and are there other states?


Can anyone explain it? :frowning:


The best docs for this are in the GraphQL docs: