github

package
v0.1.0-2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 3 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) CreateEmptyCommit

func (client Client) CreateEmptyCommit(ctx context.Context, params ParamsCreateEmptyCommit) (*github.Commit, *github.Response, error)

func (Client) GetCommit

func (client Client) GetCommit(ctx context.Context, params ParamsGetCommit) (*github.Commit, *github.Response, error)

func (Client) GetRef

func (client Client) GetRef(ctx context.Context, params ParamsGetRef) (*github.Reference, *github.Response, error)

func (Client) ListPRs

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

func (Client) UpdateRef

func (client Client) UpdateRef(ctx context.Context, params ParamsUpdateRef) (*github.Reference, *github.Response, error)

type ParamsCreateEmptyCommit

type ParamsCreateEmptyCommit struct {
	Owner     string
	Repo      string
	CommitMsg string
	Parent    *github.Commit
}

type ParamsGetCommit

type ParamsGetCommit struct {
	Owner string
	Repo  string
	SHA   string
}

type ParamsGetRef

type ParamsGetRef struct {
	Owner string
	Repo  string
	Ref   string
}

type ParamsListPRs

type ParamsListPRs struct {
	Owner string
	Repo  string
	Base  string
	Head  string
}

type ParamsNew

type ParamsNew struct {
	Token string
}

type ParamsUpdateRef

type ParamsUpdateRef struct {
	Owner string
	Repo  string
	Ref   string
	SHA   string
}

Jump to

Keyboard shortcuts

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