Documentation
¶
Overview ¶
Package github provides the GitHub implementation of the workitem provider.
Index ¶
- func New(ctx context.Context, logger *slog.Logger, cfg *config.Config) (workitem.Provider, error)
- func NewWithClient(client *gh.Client, logger *slog.Logger, owner, repo string) workitem.Provider
- type Provider
- func (p *Provider) CreateItem(ctx context.Context, item workitem.WorkItem) (*workitem.WorkItem, error)
- func (p *Provider) CreateLabel(ctx context.Context, label workitem.Label) (*workitem.Label, error)
- func (p *Provider) GetItem(ctx context.Context, number int, withComments bool) (*workitem.WorkItem, error)
- func (p *Provider) ListItems(ctx context.Context, options workitem.ListOptions) ([]workitem.WorkItem, error)
- func (p *Provider) SearchItems(ctx context.Context, query string) ([]workitem.WorkItem, error)
- func (p *Provider) UpdateItem(ctx context.Context, number int, item workitem.WorkItem) (*workitem.WorkItem, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the workitem.Provider interface for GitHub Issues.
func (*Provider) CreateItem ¶
func (p *Provider) CreateItem( ctx context.Context, item workitem.WorkItem, ) (*workitem.WorkItem, error)
CreateItem creates a new work item in the backend system.
func (*Provider) CreateLabel ¶
CreateLabel creates a new label in the backend system.
func (*Provider) GetItem ¶
func (p *Provider) GetItem( ctx context.Context, number int, withComments bool, ) (*workitem.WorkItem, error)
GetItem retrieves a single work item by its public number, optionally fetching comments.
func (*Provider) ListItems ¶
func (p *Provider) ListItems( ctx context.Context, options workitem.ListOptions, ) ([]workitem.WorkItem, error)
ListItems retrieves a collection of work items based on the provided options.
func (*Provider) SearchItems ¶
SearchItems uses a provider-specific query string to find work items.
Click to show internal directories.
Click to hide internal directories.