Documentation
¶
Index ¶
- func BitbucketToSlackID(ctx workflow.Context, cmd *cli.Command, accountID string, checkOptIn bool) string
- func BitbucketToSlackRef(ctx workflow.Context, cmd *cli.Command, accountID, displayName string) string
- func EmailToSlackID(ctx workflow.Context, cmd *cli.Command, email string) string
- func GitHubToSlackID(ctx workflow.Context, cmd *cli.Command, username string, checkOptIn bool) string
- func GitHubToSlackRef(ctx workflow.Context, cmd *cli.Command, username, url string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitbucketToSlackID ¶
func BitbucketToSlackID(ctx workflow.Context, cmd *cli.Command, accountID string, checkOptIn bool) string
BitbucketToSlackID converts a Bitbucket account ID into a Slack user ID. This depends on the user's email address being the same in both systems. This function returns an empty string if the account ID is not found.
func BitbucketToSlackRef ¶
func BitbucketToSlackRef(ctx workflow.Context, cmd *cli.Command, accountID, displayName string) string
BitbucketToSlackRef converts a Bitbucket account ID into a Slack user reference. This depends on the user's email address being the same in both systems. This function returns the Bitbucket display name if the user is not found in Slack.
func EmailToSlackID ¶
EmailToSlackID looks up a Slack user based on an email address. This function assumes this mapping does not exist yet, so it saves it if found.
func GitHubToSlackID ¶
func GitHubToSlackID(ctx workflow.Context, cmd *cli.Command, username string, checkOptIn bool) string
GitHubToSlackID converts a GitHub username into a Slack user ID. This depends on the user's email address being the same in both systems. This function returns an empty string if the username is not found, or if it belongs to a GitHub team or app.
func GitHubToSlackRef ¶
GitHubToSlackRef converts GitHub user details into a Slack user reference. This depends on the user's email address being the same in both systems. This function returns a GitHub profile link (in Slack markdown format) if the user is not found in Slack, or if it belongs to a GitHub team or app.
Types ¶
This section is empty.