slack

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

func GetSlackClient(slackConfig *config.Slack, repos map[string]*config.RepoConfig) (Bot, error)

GetSlackClient connect to Slack

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL