MCPcopy Create free account
hub / github.com/github/gh-aw / checkGHAuthStatus

Method checkGHAuthStatus

pkg/cli/add_interactive_auth.go:15–17  ·  view source on GitHub ↗

checkGHAuthStatus verifies the user is logged in to GitHub CLI

()

Source from the content-addressed store, hash-verified

13
14// checkGHAuthStatus verifies the user is logged in to GitHub CLI
15func (c *AddInteractiveConfig) checkGHAuthStatus() error {
16 return checkGHAuthStatusShared(c.Verbose)
17}
18
19// checkGitRepository verifies we're in a git repo and gets org/repo info
20// This version has special interactive handling to prompt user for repo if not found

Callers 1

RunAddInteractiveFunction · 0.80

Calls 1

checkGHAuthStatusSharedFunction · 0.85

Tested by

no test coverage detected