github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (*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) 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