Skip to content

Commit d01ac59

Browse files
committed
fix: adjust inversed returncode chec
1 parent 889ade9 commit d01ac59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
149149
gh("repo", "set-default", f"{DEMO.app_author}/{DEMO.app_name}")
150150
search_results: subprocess.CompletedProcess = gh("pr", "list", "--state", "open", "--search", branch)
151151

152-
if search_results.returncode != 0:
152+
if search_results.returncode == 0:
153153
url: str = _get_pr_url(branch=branch)
154154
typer.secho(f"Skipping PR creation due to existing PR found for branch {branch} at {url}")
155155
return

0 commit comments

Comments
 (0)