Documentation
¶
Index ¶
- type Slack
- func (s *Slack) DM(userID string, message string) error
- func (s *Slack) GetConversationMembers(channelID string) ([]string, error)
- func (s *Slack) GetUserGithubLogin(slackUserID string) (string, error)
- func (s *Slack) Init(debug bool) error
- func (s *Slack) LogGithubSlackUserMappings()
- func (s *Slack) LogUserInfo(slackUserID string)
- func (s *Slack) LogsUsersInChannel(channelID string)
- func (s *Slack) MakeGithubToSlackUserMap() (map[string]string, error)
- func (s *Slack) MakeGithubToSlackUserMapInChannels(channelIDs []string) (map[string]string, error)
- func (s *Slack) SendMessage(prn cfg.PrNotification, message string) error
- func (s *Slack) SlackSocketModeHandler(conf *cfg.AppConfig)
- func (s *Slack) SlackToGithubUpdateLoop(conf *cfg.AppConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
type Slack struct {
Client *socketmode.Client
}
func (*Slack) GetConversationMembers ¶ added in v0.0.2
GetConversationMembers returns a list of slack users in a channel
func (*Slack) GetUserGithubLogin ¶ added in v0.0.2
GetUserGithubLogin returns a github login for a Slack user based on custom fields
func (*Slack) LogGithubSlackUserMappings ¶ added in v0.0.2
func (s *Slack) LogGithubSlackUserMappings()
LogGithubSlackUserMappings logs mappings of slack to GH for debug
func (*Slack) LogUserInfo ¶ added in v0.0.2
LogUserInfo logs info about a Slack user by their user ID
func (*Slack) LogsUsersInChannel ¶ added in v0.0.2
LogsUsersInChannel logs users in the channel
func (*Slack) MakeGithubToSlackUserMap ¶ added in v0.0.2
MakeGithubToSlackUserMap builds a map of ALL slack users with their github logins based on the info found in Slack custom profile fields
func (*Slack) MakeGithubToSlackUserMapInChannels ¶ added in v0.0.2
MakeGithubtoSlackUserMapInChannels builds a map of slack users found in the channel with their github logins based on the info found in Slack custom profile fields
func (*Slack) SendMessage ¶
func (s *Slack) SendMessage(prn cfg.PrNotification, message string) error
SendMessage sends a slack message based on PR notification config
func (*Slack) SlackSocketModeHandler ¶ added in v0.0.2
SlackSocketModeHandler handles Slack events in Socket Mode
func (*Slack) SlackToGithubUpdateLoop ¶ added in v0.0.2
SlackToGithubUpdateLoop runs a loop forever and updates the Slack to GitHub user mapping