github

package
v0.0.0-...-42af38f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPullMetaFromURL

func GetPullMetaFromURL(prURL string) (string, string)

Types

type PullRequest

type PullRequest struct {
	Issue *github.Issue
	Score float32
	// contains filtered or unexported fields
}

func (*PullRequest) Bug

func (p *PullRequest) Bug() *bugzilla.Bug

type PullRequestApprover

type PullRequestApprover struct {
	// contains filtered or unexported fields
}

func NewPullRequestApprover

func NewPullRequestApprover(ctx context.Context, ghToken string) *PullRequestApprover

func (*PullRequestApprover) CherryPickApprove

func (p *PullRequestApprover) CherryPickApprove(ctx context.Context, url string) error

func (*PullRequestApprover) CherryPickRemove

func (p *PullRequestApprover) CherryPickRemove(ctx context.Context, url string) error

func (*PullRequestApprover) Comment

func (p *PullRequestApprover) Comment(ctx context.Context, url, comment string) error

type PullRequestLister

type PullRequestLister struct {
	// contains filtered or unexported fields
}

func NewPullRequestLister

func NewPullRequestLister(ctx context.Context, ghToken string, bzToken string) *PullRequestLister

func (*PullRequestLister) GetPullRequestStatus

func (l *PullRequestLister) GetPullRequestStatus(ctx context.Context, p *PullRequest) ([]*github.RepoStatus, error)

func (*PullRequestLister) ListApprovedForRelease

func (l *PullRequestLister) ListApprovedForRelease(ctx context.Context, release string) ([]*PullRequest, error)

func (*PullRequestLister) ListCandidatesForRelease

func (l *PullRequestLister) ListCandidatesForRelease(ctx context.Context, release string) ([]*PullRequest, error)

func (*PullRequestLister) ListForRelease

func (l *PullRequestLister) ListForRelease(ctx context.Context, release, labels string) ([]*PullRequest, error)

Jump to

Keyboard shortcuts

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