Skip to content

Commit

Permalink
Allow merging PRs with 'UNSTABLE' status on GH. (#60)
Browse files Browse the repository at this point in the history
Fixes #55.

Co-authored-by: Shay Nehmad <dude500@gmail.com>
  • Loading branch information
ZolotukhinM and TheCoreMan authored Feb 5, 2025
1 parent fc03b38 commit 0917aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stack_pr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def verify(st: List[StackEntry], check_base: bool = False):
raise RuntimeError

# The first entry on the stack needs to be actually mergeable on GitHub.
if check_base and index == 0 and d["mergeStateStatus"] != "CLEAN" and d["mergeStateStatus"] != "UNKNOWN":
if check_base and index == 0 and d["mergeStateStatus"] not in ["CLEAN", "UNKNOWN", "UNSTABLE"]:
error(ERROR_STACKINFO_PR_NOT_MERGEABLE.format(**locals()))
raise RuntimeError

Expand Down

0 comments on commit 0917aa8

Please sign in to comment.