-
Notifications
You must be signed in to change notification settings - Fork 561
add unstable to mergeable #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@motatoes As I understand it, this status would mean that the CI fails somehow. And with the current logic that would mean that when |
|
I'm trying to lookup a use-case that would result with this status but its a bit obscure. Even chat-GPT doesn't seem to know about it :). Did you have a specific scenario in mind regarding this fix? In doubt, I personally would prefer having a more strict behavior for now and add The function |
|
hey @fleroux514 thanks for looking into this I did run into this while setting up digger on a private repo, although all the checks were successful the digger apply command failed with the error "PR is not in a mergable state" while the merge button was active and I could infact merge it. However the apply was no longer possible. I am going to attempt reproducing this in a public repo |
|
@fleroux514 here is a reproduction of the issue pull request: motatoes/digger-test-mergeable#1 action in unstable state: https://github.com/motatoes/digger-test-mergeable/actions/runs/5059997314 you will see that the pull request has 1 commit which fails plan due to invalid terraform, now the next commit has succeeded te terraform plan phase but I am now unable to apply due to it being in an "unstable" state (although its perfectly mergeable) |
|
Thanks @motatoes. I find it to be a weird behavior from Github but based on this test I think we can proceed with this change. However it is not the reason why |
FYI : I also have this issue ( we are working it github.com enterprise with private repos) |
|
I tried this again with Still having the issue |
|
... sorry , I see , that the github action with this fix is not released yet. got it |
|
hey @frank-bee it should be fixed in |
Unstable means: "Mergeable with non-passing commit status." So it should be in the map of mergeable states
https://docs.github.com/en/github-ae@latest/graphql/reference/enums#mergestatestatus