pullrequest

package
v0.0.0-...-66e7835 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFetcher

func NewFetcher(repoPath string) *prFetcher

Types

type PR

type PR struct {
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Status       statusInfo
	IsMainBranch bool
	// contains filtered or unexported fields
}

PR is a distillation of certain attributes about a given pull request, including commit status information.

func (PR) Author

func (pr PR) Author() string

func (PR) Branch

func (pr PR) Branch() (*object.RepoBranch, error)

func (PR) Commit

func (pr PR) Commit() (*object.RepoCommit, error)

Commit returns the Github Commit instance with this pull request's SHA.

func (PR) Equal

func (pr PR) Equal(other PR) bool

Equal checks if two fetched pull requests are equal

func (PR) IsBranch

func (pr PR) IsBranch() bool

func (PR) IsReviewed

func (pr PR) IsReviewed() bool

IsReviewed indicates if this PullRequestStatus has been reviewed

func (PR) IsTested

func (pr PR) IsTested() bool

IsTested indicates if this PullRequestStatus has been tested

func (PR) Name

func (pr PR) Name() string

func (PR) Number

func (pr PR) Number() int

func (PR) PackageName

func (pr PR) PackageName() string

func (PR) Repo

func (pr PR) Repo() *object.Repository

Repo gets the Github Repository instance that contains this pull request

func (PR) RepoPath

func (pr PR) RepoPath() string

func (PR) SHA

func (pr PR) SHA() string

func (PR) String

func (pr PR) String() string

func (PR) TestFailed

func (pr PR) TestFailed() bool

TestFailed indicates if this PullRequestStatus failed testing

type PRFetcher

type PRFetcher interface {
	Fetch() ([]*PR, error)
}

-------------------------------------------------------- -------------------------------------------------------- --------------------------------------------------------

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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