Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullRequest ¶
type PullRequest interface {
ID() string
Author() string
Body() string
Title() string
Open() bool
Merged() bool
Labels() []labels.Label
Milestone() milestone.Milestone
Reviewers() []string
CreatedAt() time.Time
UpdatedAt() time.Time
String() string
//TODO add expensive methods for fetching richer objects here
NumberOfCommits() int
NumberOfAdditions() int
NumberOfDeletions() int
NumberOfChangedFiles() int
NumberOfComments() int
}
A PullRequestWithoutComments contains basic information about a GitHub pull request
func New ¶
func New(rawJSON []byte) ([]PullRequest, error)
New returns a slice of PullRequestWithoutComments from raw JSON
Click to show internal directories.
Click to hide internal directories.