Skip to content

Handle mergeStateStatus being UNKNOWN #54

@gabrielittner

Description

@gabrielittner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions