github

package
v0.0.0-...-7fdbefa Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 5 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 CommitFile

type CommitFile = github.CommitFile

type Label

type Label = github.Label

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
}

type PullRequest

type PullRequest = github.PullRequest

type Response

type Response = github.Response

Jump to

Keyboard shortcuts

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