Skip to content

Commit f61fb7c

Browse files
committed
chore: add some debugging statements
1 parent 3e872f2 commit f61fb7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/update-demo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
148148
"""Creates a PR to merge the given branch into develop."""
149149
gh("repo", "set-default", f"{DEMO.app_author}/{DEMO.app_name}")
150150
search_results: subprocess.CompletedProcess = gh("pr", "list", "--state", "open", "--search", branch)
151+
typer.secho(f"_create_demo_pr - {search_results.stdout}")
151152

152153
if "no pull requests match your search" not in search_results.stdout:
153154
url: str = _get_pr_url(branch=branch)
@@ -169,6 +170,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
169170
def _get_pr_url(branch: str) -> str:
170171
"""Returns the url of the current branch's PR."""
171172
result: subprocess.CompletedProcess = gh("pr", "view", branch, "--json", "url", "--jq", ".url")
173+
typer.secho(f"_get_pr_url - {result.stdout=}")
172174
if result.returncode != 0:
173175
raise ValueError(f"Failed to find a PR URL for branch {branch}.")
174176
return result.stdout.strip()

0 commit comments

Comments
 (0)