Skip to content

Commit 6dd1a0a

Browse files
committed
feat(push): include GitHub App install URL in "app not installed" error
The platform project payload already exposes remote_precheck_github_app_install_url; surface it directly so the user can click through to install the ChipFoundry GitHub App on the right account instead of hunting through the portal. Made-with: Cursor
1 parent 4e54a33 commit 6dd1a0a

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

chipfoundry_cli/main.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,10 +1489,19 @@ def _push_remote(project_root: Optional[str], project_name: Optional[str], dry_r
14891489
)
14901490
raise click.Abort()
14911491
if not project.get("remote_precheck_github_ready"):
1492+
install_url = (project.get("remote_precheck_github_app_install_url") or "").strip()
14921493
console.print(
1493-
"[red]The ChipFoundry GitHub App is not installed on this repository[/red] (or the URL is invalid).\n"
1494-
"Install it from the project page in the portal, then retry."
1494+
"[red]The ChipFoundry GitHub App is not installed on this repository[/red] "
1495+
"(or the repo URL is wrong)."
14951496
)
1497+
if install_url:
1498+
console.print(f"Install the app here: [cyan]{install_url}[/cyan]")
1499+
console.print(
1500+
f"Make sure [bold]{github_repo_url}[/bold] is selected during installation, "
1501+
"then re-run [bold]cf push --remote[/bold]."
1502+
)
1503+
else:
1504+
console.print("Install it from the project page in the portal, then retry.")
14961505
raise click.Abort()
14971506

14981507
final_project_name = project_name or Path(project_root).name

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "chipfoundry-cli"
3-
version = "2.3.18"
3+
version = "2.3.19"
44
description = "CLI tool to automate ChipFoundry project submission to SFTP server"
55
authors = ["ChipFoundry <marwan.abbas@chipfoundry.io>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)