github

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Repositories
	PullRequests
}

func New added in v0.4.0

func New(tp http.RoundTripper) *Client

func (Client) GetPullRequestCount added in v0.4.0

func (c Client) GetPullRequestCount(ctx context.Context, user string, repo string) (prCount int, err error)

func (Client) GetPullRequestCountPage

func (c Client) GetPullRequestCountPage(ctx context.Context, user string, repo string, page int) (prCount int, nextPage int, err error)

func (Client) GetRepoStats

func (c Client) GetRepoStats(ctx context.Context, user string, repo string) (RepoStats, error)

func (Client) GetUserRepoNames added in v0.4.0

func (c Client) GetUserRepoNames(ctx context.Context, user string) (repos []string, err error)

func (Client) GetUserReposPage

func (c Client) GetUserReposPage(ctx context.Context, user string, page int) (repoNames []string, nextPage int, err error)

type PullRequests added in v0.4.0

type PullRequests interface {
	List(context.Context, string, string, *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)
}

type RepoStats

type RepoStats struct {
	Name         string
	Stars        int
	Issues       int
	PullRequests int
	Forks        int
	Archived     bool
}

type Repositories added in v0.4.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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