Skip to content

Commit

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

Co-authored-by: Shay Nehmad <dude500@gmail.com>

stack-info: PR: #60, branch: ZolotukhinM/stack/2
  • Loading branch information
ZolotukhinM committed Feb 5, 2025
1 parent 385fd52 commit 49c8ac3
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 49c8ac3

Please sign in to comment.