I've been playing around with the Github API to not allow pull requests to merge if commit status are marked as failure.
I'm running into this issue that say if I have 5 commits (most recent - lease)
- commit1: status-failure
- commit2: status-failure
- commit3: status-failure
- commit4: status-failure
- commit5: status-success
The merge is allowed as long as the most recent PR commit has a 'success' status when it shouldn't be.
Any combination of failures/success will not allow the merge AS LONG AS the most recent commit is also a failure.