Documentation
¶
Overview ¶
Package slack is a package meant to help utilize the Slack API in GitHub actions.
Index ¶
- func FindChannelID(channels []slack.Channel, name string) (string, error)
- func GetAllChannels(client *slack.Client) ([]slack.Channel, error)
- func Hyperlink(text, link string) string
- func JoinConversationContext(ctx context.Context, client *slack.Client, channelID string) error
- func Message(text string) slack.MsgOption
- func NewClient() (*slack.Client, error)
- func PostMessageContext(ctx context.Context, client *slack.Client, channelID, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindChannelID ¶
FindChannelID given a channel name, finds the channel id.
func GetAllChannels ¶
GetAllChannels retrieves a list of all the available slack channels and retries once if needed.
func JoinConversationContext ¶ added in v1.5.0
JoinConversationContext joins the specified slack channel and retries once if needed.
func NewClient ¶
NewClient returns a new slack client configured with the token we expect to exist in the environment.
func PostMessageContext ¶ added in v1.5.0
PostMessageContext posts a message to the specified channel and retries if needed. Before trying to post, you need to make sure that you are part of channel by using JoinConversationContext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.