Skip to content
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

Handle mergeStateStatus being UNKNOWN #54

Closed
gabrielittner opened this issue Dec 10, 2024 · 2 comments
Closed

Handle mergeStateStatus being UNKNOWN #54

gabrielittner opened this issue Dec 10, 2024 · 2 comments

Comments

@gabrielittner
Copy link

I'm pretty regularly running into this error when landing a stack:

ERROR: Associated PR is not mergeable on GitHub!
     e42b9158 (#9899, 'gabriel/stack/1' -> 'main'): ...

Please fix the issues on GitHub.

PR info from github: {'baseRefName': 'main', 'body': '...', 'headRefName': 'gabriel/stack/1', 'mergeStateStatus': 'UNKNOWN', 'number': 9899, 'state': 'OPEN', 'title': '...`', 'url': 'https://github.com/.../pull/9899'}

This usually happens when another PR was merged and no one looked at the PR since then. Usually the Github UI will show some kind of processing indicator. If I just re-run stack-pr land it then works immediately. It would be great if stack-pr could detect the UNKNOWN state and then just internally retry after waiting a few seconds.

@rvi
Copy link

rvi commented Dec 10, 2024

I have a similar problem with the mergeStateStatus is UNSTABLE, in my case it's impossible to land the code if some optional github checks are not passing, on the other hand I can land the code on github.

@AmaranthineCodices
Copy link
Collaborator

This was fixed by #49 but we haven't cut a new release yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants