ljharb/can-merge

can-merge incorrectly says the PR is mergeable

Open

#38 opened on Dec 27, 2021

View on GitHub
 (6 comments) (1 reaction) (2 assignees)JavaScript (3 forks)github user discovery
buggood first issuehelp wanted

Repository metrics

Stars
 (15 stars)
PR merge metrics
 (PR metrics pending)

Description

On https://github.com/nvm-sh/nvm/pull/2698, at a stage when every status check was green except for the Travis CI one, which was pending, I got this output:

$ can-merge --remote=source --pr=2698
PR status: 2698 ✔ This PR is mergeable
Pending Checks (1): Travis CI - Pull Request

It shouldn't report that the PR is mergeable while there's still a pending required check (since the travis check is required). Note that this output would have been perfect if travis was optional.

Note that the exit code was 1, which is correct.

Contributor guide