github

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 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 {
	Client *github.Client
}

func New

func New(ctx context.Context, params ParamsNew) Client

func (Client) GetPR

func (client Client) GetPR(ctx context.Context, params ParamsGetPR) (*github.PullRequest, *github.Response, error)

func (Client) GetPRFiles

func (client Client) GetPRFiles(ctx context.Context, params ParamsGetPRFiles) ([]*github.CommitFile, *github.Response, error)

func (Client) ListPRsWithCommit

func (client Client) ListPRsWithCommit(ctx context.Context, params ParamsListPRsWithCommit) ([]*github.PullRequest, *github.Response, error)

type ParamsGetPR

type ParamsGetPR struct {
	Owner string
	Repo  string
	PRNum int
}

type ParamsGetPRFiles

type ParamsGetPRFiles struct {
	Owner    string
	Repo     string
	PRNum    int
	FileSize int
}

type ParamsListPRsWithCommit

type ParamsListPRsWithCommit struct {
	Owner string
	Repo  string
	SHA   string
}

type ParamsNew

type ParamsNew struct {
	Token string
}

Jump to

Keyboard shortcuts

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