Versions in this module Expand all Collapse all v0 v0.1.1 Mar 19, 2020 v0.1.0 Dec 30, 2019 Changes in this version + func New(gh *GitHub, owner, repo, defaultBranch string) *prdiff + func NewClosedPullRequestListOptions(opts ...PullRequestListOptionFunc) *github.PullRequestListOptions + type GitHub struct + func NewGitHub(ctx context.Context, accessToken string) *GitHub + func (gh *GitHub) CompareRepositoryCommits(ctx context.Context, owner, repo, base, head string) (*github.CommitsComparison, *github.Response, error) + func (gh *GitHub) GetRepository(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error) + func (gh *GitHub) GetRepositoryLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error) + func (gh *GitHub) ListPullRequests(ctx context.Context, owner, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) + type GitHubAPI interface + CompareRepositoryCommits func(ctx context.Context, owner, repo, base, head string) (*github.CommitsComparison, *github.Response, error) + GetRepository func(ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error) + GetRepositoryLatestRelease func(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error) + ListPullRequests func(ctx context.Context, owner, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) + type PullRequestListOptionFunc func(*github.PullRequestListOptions) + func WithBase(base string) PullRequestListOptionFunc