Able to merge PRs without passing required status checks using v3 API


In the past, when merging a pull request, it will throw a 40x if the PR branch was not up to date or if any of the status checks failed. However, now the merge pull request call is able to merge PRs into master even if they are outdated (or if any other status checks are failing). This is API v3, and I’m using squash merge.

If this expected behaviour? Thanks!

Does the user that you’re using to merge the PR have the ability to override status checks? For example, an administrator on the repository can often merge PRs that people with only write access cannot. If that is the case, then this would be the expected behavior.

Let us know.