gh

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Owner string
	Name  string
	Token
}

func NewRepo

func NewRepo(owner, repo, token string) Repo

func (Repo) GetAllPullRequests

func (r Repo) GetAllPullRequests(state string) (*[]github.PullRequest, error)

func (Repo) GetLabelsFor

func (r Repo) GetLabelsFor(number int) (*[]string, error)

func (Repo) ListAllPullRequests

func (r Repo) ListAllPullRequests(state string, cb func([]*github.PullRequest, *github.Response) error) error

func (Repo) PrURL

func (r Repo) PrURL(pr int) string

type Token

type Token struct {
	Token *string
}

func (Token) NewClient

func (t Token) NewClient() (*github.Client, context.Context)

Jump to

Keyboard shortcuts

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