Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classifier ¶
type Classifier interface {
Score(*github.PullRequest) float32
}
Classifier interface define Score function that every classifier must implement
func NewMultiClassifier ¶
func NewMultiClassifier(classifiers ...Classifier) Classifier
type ComponentClassifier ¶
type ComponentClassifier struct {
Config *config.ComponentClassifierConfig
}
ComponentClassifier classify pull request based on bugzilla component. Some components are more critical to keep the platform on the wheels than others, these components should get more score.
func (*ComponentClassifier) Score ¶
func (c *ComponentClassifier) Score(pullRequest *github.PullRequest) float32
type KeywordsClassifier ¶
type KeywordsClassifier struct {
Config *config.KeywordsClassifierConfig
}
KeywordsClassifier classify pull request based on importance of bugzilla keywords.
func (*KeywordsClassifier) Score ¶
func (f *KeywordsClassifier) Score(pullRequest *github.PullRequest) float32
type MultiClassifier ¶
type MultiClassifier struct {
// contains filtered or unexported fields
}
MultiClassifier groups multiple classifier together and perform synchronous classifications
func (*MultiClassifier) Score ¶
func (m *MultiClassifier) Score(pullRequest *github.PullRequest) float32
type ProductManagementScoreClassifier ¶
type ProductManagementScoreClassifier struct {
Config *config.PMScoreClassifierConfig
}
ProductManagementScoreClassifier classify pull request based on the product management score (PMScore).
func (*ProductManagementScoreClassifier) Score ¶
func (p *ProductManagementScoreClassifier) Score(pullRequest *github.PullRequest) float32
type SeverityClassifier ¶
type SeverityClassifier struct {
Config *config.SeverityClassifierConfig
}
SeverityClassifier classify pull request based on the bugzilla severity. Urgent:1, High:0.5, Medium:0.2, Low: 0.1 Unknown severity gets penalty of -1.
func (*SeverityClassifier) Score ¶
func (s *SeverityClassifier) Score(pullRequest *github.PullRequest) float32