{"modulePath":"github.com/inference-gateway/cli","version":"v0.269.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package issues\n\n## Types\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\nService implements agentdomain.GitHubIssueService.\n\n```go\nfunc New() *Service\n```\nNew constructs a Service that shells out to the real gh CLI.\n\n```go\nfunc (s *Service) GetIssue(ctx context.Context, number int) (*agentdomain.GitHubIssue, error)\n```\nGetIssue fetches a single issue with body and the last maxComments comments. Uncached. Called once per \"#N\" token at message-submit time.\n\n```go\nfunc (s *Service) IsAvailable() bool\n```\nIsAvailable reports whether the gh CLI is on PATH and a repo is configured. The result is computed lazily on first call and cached for the process lifetime - a missing gh today is missing for the rest of the session, and the autocomplete UI should not block on \\`gh repo view\\` per keystroke.\n\n```go\nfunc (s *Service) ListIssues(ctx context.Context) ([]agentdomain.GitHubIssue, error)\n```\nListIssues returns recent open issues for the current repo, newest first, capped at maxResults. Cached for cacheTTL. Returns (\\[], nil) on any environment failure (no gh, not a repo, not authed) so the autocomplete UI can treat absence as \"show nothing\" rather than as an error.\n\n","path":"github.com/inference-gateway/cli/internal/github/issues","name":"issues","synopsis":"","isRedistributable":true}
