Skip to content

Commit 0917aa8

Browse files
Allow merging PRs with 'UNSTABLE' status on GH. (#60)
Fixes #55. Co-authored-by: Shay Nehmad <[email protected]>
1 parent fc03b38 commit 0917aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stack_pr/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def verify(st: List[StackEntry], check_base: bool = False):
506506
raise RuntimeError
507507

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

0 commit comments

Comments
 (0)