Documentation
¶
Index ¶
- func FilteredFiles(ctx context.Context, c *client.Client, t time.Time, org string, project string, ...) ([]*github.CommitFile, error)
- func ListRepoNames(ctx context.Context, c *client.Client, org string) ([]string, error)
- func MergedPulls(ctx context.Context, c *client.Client, org string, project string, ...) ([]*github.PullRequest, error)
- func ParseURL(rawURL string) (org string, project string)
- type CommentSummary
- type IssueSummary
- type PRSummary
- type ReviewSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilteredFiles ¶
func FilteredFiles(ctx context.Context, c *client.Client, t time.Time, org string, project string, num int) ([]*github.CommitFile, error)
FilteredFiles returns a list of commit files that matter
func ListRepoNames ¶
ListRepoNames returns the names of all the repositories of the specified Github organization.
Types ¶
type CommentSummary ¶
type CommentSummary struct {
URL string
Date string
Project string
Commenter string
IssueAuthor string
IssueState string
Comments int
Words int
Title string
}
CommentSummary a summary of a users reviews on an issue
type IssueSummary ¶
type IssueSummary struct {
URL string
Date string
Author string
Closer string
Project string
Type string
Title string
}
IssueSummary is a summary of a single PR
type PRSummary ¶
type PRSummary struct {
URL string
Date string
User string
Project string
Type string
Title string
Delta int
Added int
Deleted int
FilesTotal int
Files string // newline delimited
Description string
}
PRSummary is a summary of a single PR
func PullSummary ¶
func PullSummary(prs map[*github.PullRequest][]github.CommitFile, since time.Time, until time.Time) ([]*PRSummary, error)
PullSummary converts GitHub PR data into a summarized view
Click to show internal directories.
Click to hide internal directories.