Skip to content

feat(doctor): add gh CLI checks for GitHub provider#45

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
udjevdbaj:feat/doctor-gh-checks
Jun 25, 2026
Merged

feat(doctor): add gh CLI checks for GitHub provider#45
jeff-r2026 merged 1 commit into
Tencent:mainfrom
udjevdbaj:feat/doctor-gh-checks

Conversation

@udjevdbaj

Copy link
Copy Markdown
Contributor

Summary

The teamai doctor command checks whether gf CLI is installed and authenticated for the TGit provider, but has no equivalent check for the GitHub provider. This means GitHub users won't be notified if their gh CLI is missing or not logged in.

This adds symmetric checks for the GitHub provider using the existing isGhInstalled and ghIsAuthenticated exports.

Changes

  • src/doctor.ts: add else if (providerName === 'github') branch with gh CLI install + auth checks

The pattern mirrors the existing TGit checks exactly.

The doctor command checked gf CLI installation/auth for the TGit
provider but had no equivalent for the GitHub provider. GitHub users
running `teamai doctor` would not be told if gh CLI is missing or
unauthenticated.

Add symmetric checks using the existing isGhInstalled and
ghIsAuthenticated exports.
@jeff-r2026 jeff-r2026 merged commit 12c5545 into Tencent:main Jun 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants