Documentation ¶
Overview ¶
Package metric contains all the metrics that analyze Pull Requests in different ways.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Age ¶
type Age struct {
// contains filtered or unexported fields
}
Age contains the calculated data
type AgeAssignee ¶
type AgeAssignee struct {
// contains filtered or unexported fields
}
AgeAssignee contains the calculated data
func (*AgeAssignee) Calculate ¶
func (m *AgeAssignee) Calculate(pullRequests []github.PullRequest) error
Calculate the average age of a PR in total and by developer
func (*AgeAssignee) Description ¶
func (m *AgeAssignee) Description() string
Description of the metric
func (*AgeAssignee) String ¶
func (m *AgeAssignee) String() string
Converts the calculated data to a string
type Assignee ¶
type Assignee struct {
// contains filtered or unexported fields
}
Assignee contains the calculated data
type AssigneeMatrix ¶
type AssigneeMatrix struct {
// contains filtered or unexported fields
}
AssigneeMatrix contains the calculated data
func (*AssigneeMatrix) Calculate ¶
func (m *AssigneeMatrix) Calculate(pullRequests []github.PullRequest) error
Calculate how often each developer is an assignee
func (*AssigneeMatrix) Description ¶
func (m *AssigneeMatrix) Description() string
Description of the metric
func (*AssigneeMatrix) String ¶
func (m *AssigneeMatrix) String() string
Converts the calculated data to a string
type Author ¶
type Author struct {
// contains filtered or unexported fields
}
Author contains the calculated data
type AuthorComments ¶
type AuthorComments struct {
// contains filtered or unexported fields
}
AuthorComments contains the calculated data
func (*AuthorComments) Calculate ¶
func (m *AuthorComments) Calculate(pullRequests []github.PullRequest) error
Calculate the data
func (*AuthorComments) Description ¶
func (m *AuthorComments) Description() string
Description of the metric
func (*AuthorComments) String ¶
func (m *AuthorComments) String() string
Converts the calculated data to a string
type CommentCharsPerDay ¶
type CommentCharsPerDay struct {
// contains filtered or unexported fields
}
CommentCharsPerDay contains the calculated data
func (*CommentCharsPerDay) Calculate ¶
func (m *CommentCharsPerDay) Calculate(pullRequests []github.PullRequest) error
Calculate the average age of a PR in total and by developer
func (*CommentCharsPerDay) Description ¶
func (m *CommentCharsPerDay) Description() string
Description of the metric
func (*CommentCharsPerDay) String ¶
func (m *CommentCharsPerDay) String() string
Converts the calculated data to a string
type DescriptionSize ¶
type DescriptionSize struct {
// contains filtered or unexported fields
}
DescriptionSize contains the calculated data
func (*DescriptionSize) Calculate ¶
func (m *DescriptionSize) Calculate(pullRequests []github.PullRequest) error
Calculate the data
func (*DescriptionSize) Description ¶
func (m *DescriptionSize) Description() string
Description of the metric
func (*DescriptionSize) String ¶
func (m *DescriptionSize) String() string
Converts the calculated data to a string
type DiffSize ¶
type DiffSize struct {
// contains filtered or unexported fields
}
DiffSize contains the calculated data
type DiffSizePerDay ¶
type DiffSizePerDay struct {
// contains filtered or unexported fields
}
DiffSizePerDay contains the calculated data
func (*DiffSizePerDay) Calculate ¶
func (m *DiffSizePerDay) Calculate(pullRequests []github.PullRequest) error
Calculate the average age of a PR in total and by developer
func (*DiffSizePerDay) Description ¶
func (m *DiffSizePerDay) Description() string
Description of the metric
func (*DiffSizePerDay) String ¶
func (m *DiffSizePerDay) String() string
Converts the calculated data to a string
type Metric ¶
type Metric interface { Description() string Calculate(pullRequests []github.PullRequest) error String() string }
Metric is a common interface for every metric in metric/*.go
type ReviewRequest ¶
type ReviewRequest struct {
// contains filtered or unexported fields
}
ReviewRequest contains the calculated data
func (*ReviewRequest) Calculate ¶
func (m *ReviewRequest) Calculate(pullRequests []github.PullRequest) error
Calculate the data
func (*ReviewRequest) Description ¶
func (m *ReviewRequest) Description() string
Description of the metric
func (*ReviewRequest) String ¶
func (m *ReviewRequest) String() string
Converts the calculated data to a string