Documentation
¶
Index ¶
- func NewFetcher(repoPath string) *prFetcher
- type PR
- func (pr PR) Author() string
- func (pr PR) Branch() (*object.RepoBranch, error)
- func (pr PR) Commit() (*object.RepoCommit, error)
- func (pr PR) Equal(other PR) bool
- func (pr PR) IsBranch() bool
- func (pr PR) IsReviewed() bool
- func (pr PR) IsTested() bool
- func (pr PR) Name() string
- func (pr PR) Number() int
- func (pr PR) PackageName() string
- func (pr PR) Repo() *object.Repository
- func (pr PR) RepoPath() string
- func (pr PR) SHA() string
- func (pr PR) String() string
- func (pr PR) TestFailed() bool
- type PRFetcher
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) Commit ¶
func (pr PR) Commit() (*object.RepoCommit, error)
Commit returns the Github Commit instance with this pull request's SHA.
func (PR) IsReviewed ¶
IsReviewed indicates if this PullRequestStatus has been reviewed
func (PR) PackageName ¶
func (PR) Repo ¶
func (pr PR) Repo() *object.Repository
Repo gets the Github Repository instance that contains this pull request
func (PR) TestFailed ¶
TestFailed indicates if this PullRequestStatus failed testing
Click to show internal directories.
Click to hide internal directories.