kodiak icon indicating copy to clipboard operation
kodiak copied to clipboard

"Merging blocked by GitHub requirements"

Open staabm opened this issue 3 years ago • 6 comments

hmm what is this error message is trying to tell me? :)

grafik

staabm avatar Apr 25 '21 09:04 staabm

If you click the "Detail" section what does the error message say?

chdsbd avatar Apr 25 '21 10:04 chdsbd

Since then I merged manually and new PRs dont let me repro it :-/

staabm avatar Apr 25 '21 11:04 staabm

In case it helps, the affected PR was https://github.com/staabm/rector-view-scope/pull/19

staabm avatar Apr 25 '21 12:04 staabm

This error occurs when the PullRequest.mergeStateStatus field is BLOCKED, but Kodiak can't determine why.

Kodiak sets the error message here:

https://github.com/chdsbd/kodiak/blob/618993d7db1bf27847d9e938ccef28b084b8a13c/bot/kodiak/evaluation.py#L1026-L1031

I think I had a similar issue recently. My PR looked mergeable in the UI, but when I called the GitHub API, it said the PullRequest.mergeStateStatus was BLOCKED. Retrying my API request didn't resolve the issue. My guess is there's some consistency issue with the GitHub API.

If this happens again we can try opening a support ticket with GitHub.

chdsbd avatar Apr 25 '21 18:04 chdsbd

I am running into this again. the "Details" link just points to https://kodiakhq.com/

image

clxmstaab avatar May 11 '21 11:05 clxmstaab

@clxmstaab If possible, next time this happens don't merge the pull request. That way we can open an issue with GitHub Support. I don't think there's anything we can do right now since we don't have an example to show GitHub.

chdsbd avatar May 11 '21 12:05 chdsbd