Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommentMarker = "<!-- RELNOTE_PREDICTION -->" KindBugLabel = "kind/bug" TruePrediction PredictionResult = 0.6 PredctionResultExcluded PredictionResult = -1.0 )
Variables ¶
This section is empty.
Functions ¶
func HelpProvider ¶
func HelpProvider([]config.OrgRepo) (*pluginhelp.PluginHelp, error)
HelpProvider constructs the PluginHelp for this plugin that takes into account enabled repositories. helpProvider defines the type for function that construct the PluginHelp for plugins.
Types ¶
type Client ¶
type Client interface { AddLabel(number int, label string) error BotUser() (*github.User, error) CreateComment(number int, comment string) error DeleteComment(number int) error EditComment(id int, comment string) error GetIssueLabels(number int) ([]github.Label, error) ListIssueComments(number int) ([]github.IssueComment, error) RemoveLabel(number int, label string) error }
type Plugin ¶
type Plugin interface { HandleIssueEvent(*github.IssueEvent) error HandlePullRequestEvent(*github.PullRequestEvent) error SetPredictor(Predictor) SetClient(Client) }
type PredictionResult ¶
type PredictionResult float64
type Predictor ¶
type Predictor interface {
Predict(url, input string) (PredictionResult, error)
}
func NewPredictor ¶
NewPredictor creates a new predictor instance.
Click to show internal directories.
Click to hide internal directories.