{"modulePath":"github.com/contextvibes/cli","version":"v0.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\nPackage github provides the GitHub implementation of the workitem provider.\n\n## Functions\n\n```go\nfunc New(ctx context.Context, logger *slog.Logger, cfg *config.Config) (workitem.Provider, error)\n```\nNew creates a new Provider by discovering the repository from the local git remote.\n\n```go\nfunc NewWithClient(client *gh.Client, logger *slog.Logger, owner, repo string) workitem.Provider\n```\nNewWithClient creates a new Provider with an existing GitHub client.\n\n## Types\n\n```go\ntype Provider struct {\n\t// contains filtered or unexported fields\n}\n```\nProvider implements the workitem.Provider interface for GitHub Issues.\n\n```go\nfunc (p *Provider) CreateItem(\n\tctx context.Context,\n\titem workitem.WorkItem,\n) (*workitem.WorkItem, error)\n```\nCreateItem creates a new work item in the backend system.\n\n```go\nfunc (p *Provider) CreateLabel(ctx context.Context, label workitem.Label) (*workitem.Label, error)\n```\nCreateLabel creates a new label in the backend system.\n\n```go\nfunc (p *Provider) GetItem(\n\tctx context.Context,\n\tnumber int,\n\twithComments bool,\n) (*workitem.WorkItem, error)\n```\nGetItem retrieves a single work item by its public number, optionally fetching comments.\n\n```go\nfunc (p *Provider) ListItems(\n\tctx context.Context,\n\toptions workitem.ListOptions,\n) ([]workitem.WorkItem, error)\n```\nListItems retrieves a collection of work items based on the provided options.\n\n```go\nfunc (p *Provider) SearchItems(ctx context.Context, query string) ([]workitem.WorkItem, error)\n```\nSearchItems uses a provider-specific query string to find work items.\n\n```go\nfunc (p *Provider) UpdateItem(\n\tctx context.Context,\n\tnumber int,\n\titem workitem.WorkItem,\n) (*workitem.WorkItem, error)\n```\nUpdateItem updates an existing work item in the backend system.\n\n","path":"github.com/contextvibes/cli/internal/workitem/github","name":"github","synopsis":"Package github provides the GitHub implementation of the workitem provider.","isRedistributable":true}
