github

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRepositories added in v0.0.6

func FormatRepositories(repos []Repository) string

func FormatRunners added in v0.0.6

func FormatRunners(runners []Runner) string

Types

type AuthStatus added in v0.0.6

type AuthStatus struct {
	CLIAvailable   bool
	Authenticated  bool
	Login          string
	CopilotEnabled bool
}

type Client

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

func NewClient

func NewClient(token, owner, repo string) *Client

func (*Client) FormatStatus added in v0.0.6

func (c *Client) FormatStatus(ctx context.Context) (string, error)

func (*Client) GetAuthStatus added in v0.0.6

func (c *Client) GetAuthStatus(ctx context.Context) AuthStatus

func (*Client) GetRelevantContext

func (c *Client) GetRelevantContext(ctx context.Context, question string) (string, error)

func (*Client) GetWorkflowStatus

func (c *Client) GetWorkflowStatus(ctx context.Context, workflowName string) (string, error)

func (*Client) ListRepositories added in v0.0.6

func (c *Client) ListRepositories(ctx context.Context, limit int) ([]Repository, error)

func (*Client) ListRunners added in v0.0.6

func (c *Client) ListRunners(ctx context.Context) ([]Runner, error)

func (*Client) ResolveRepository added in v0.0.6

func (c *Client) ResolveRepository(ctx context.Context) (string, string, error)

type Repository added in v0.0.6

type Repository struct {
	Owner         string
	Name          string
	Description   string
	URL           string
	DefaultBranch string
	IsPrivate     bool
	IsFork        bool
}

type Runner added in v0.0.6

type Runner struct {
	ID     int64
	Name   string
	OS     string
	Status string
	Busy   bool
	Labels []string
}

Jump to

Keyboard shortcuts

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