Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDiffTooLarge = errors.New("diff-too-large")
View Source
var ErrUnauthenticated = errors.New("unauthenticated")

Functions

func ResolveToken

func ResolveToken(ctx context.Context) string

Types

type Client

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

func New

func New(ctx context.Context, noGitHub bool) *Client

func NewWithClient added in v0.1.24

func NewWithClient(ghc *gh.Client) *Client

func (*Client) Authenticated

func (c *Client) Authenticated() bool

func (*Client) ListIssues

func (c *Client) ListIssues(ctx context.Context, owner string, repo string) ([]model.IssueItem, error)

func (*Client) ListMyIssues

func (c *Client) ListMyIssues(ctx context.Context) ([]model.AccountIssueItem, error)

func (*Client) ListMyPullRequests

func (c *Client) ListMyPullRequests(ctx context.Context) ([]model.AccountPullRequestItem, error)

func (*Client) ListPRFiles added in v0.1.18

func (c *Client) ListPRFiles(ctx context.Context, owner string, repo string, number int) ([]*gh.CommitFile, error)

func (*Client) ListPRs

func (c *Client) ListPRs(ctx context.Context, owner string, repo string) ([]model.PullRequestItem, error)

func (*Client) PullRequestDiff

func (c *Client) PullRequestDiff(ctx context.Context, owner string, repo string, number int) (string, error)

Jump to

Keyboard shortcuts

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