Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot interface {
GetAPI() *slack.Client
SendMessage(channel string, msg string) error
NewPR(channel string, owner string, repo string, target string, pr *github.PullRequest, newPr *github.PullRequest, stat string) error
FailPR(channel string, owner string, repo string, target string, pr *github.PullRequest, message string) error
Report(channel string, title string, content string) error
NoticeLabel(channel string, owner string, repo string, number int, author string) error
GetUserByEmail(email string) (string, error)
SendMessageWithPr(channel string, msg string, pr *github.PullRequest, stat string) error
SendMessageWithIssue(channel string, msg string, issue *github.Issue) error
SendMessageWithIssueComment(channel string, msg string, issue *github.Issue, issueComment *github.IssueComment) error
// contains filtered or unexported methods
}
Bot process Slack API events
func GetSlackClient ¶
GetSlackClient connect to Slack
Click to show internal directories.
Click to hide internal directories.