Skip to content

Commit d657da3

Browse files
committed
fix: shrink the scope of text checked for to ensure differing gh cli versions don't differ wording
1 parent f61fb7c commit d657da3

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
@@ -150,7 +150,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
150150
search_results: subprocess.CompletedProcess = gh("pr", "list", "--state", "open", "--search", branch)
151151
typer.secho(f"_create_demo_pr - {search_results.stdout}")
152152

153-
if "no pull requests match your search" not in search_results.stdout:
153+
if "no pull requests" not in search_results.stdout:
154154
url: str = _get_pr_url(branch=branch)
155155
typer.secho(f"Skipping PR creation due to existing PR found for branch {branch} at {url}")
156156
return

0 commit comments

Comments
 (0)