Skip to content

Commit a9870f3

Browse files
authored
fix pr state check conditions (#4)
1 parent 43a98cc commit a9870f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitstack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _check_and_rebase(self, branch: str) -> None:
266266
should_remove = input(
267267
f"Branch {branch} has already been merged into master, delete local branch? (Y/n) "
268268
)
269-
elif pr_state == "MERGED":
269+
elif pr_state == "CLOSED":
270270
should_remove = input(
271271
f"Branch {branch} has been closed, delete local branch? (Y/n) "
272272
)

0 commit comments

Comments
 (0)