issues

package
v0.221.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements agentdomain.GitHubIssueService.

func New

func New() *Service

New constructs a Service that shells out to the real gh CLI.

func (*Service) GetIssue

func (s *Service) GetIssue(ctx context.Context, number int) (*agentdomain.GitHubIssue, error)

GetIssue fetches a single issue with body and the last maxComments comments. Uncached; called once per "#N" token at message-submit time.

func (*Service) IsAvailable

func (s *Service) IsAvailable() bool

IsAvailable 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.

func (*Service) ListIssues

func (s *Service) ListIssues(ctx context.Context) ([]agentdomain.GitHubIssue, error)

ListIssues 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL