Documentation
¶
Index ¶
- func BitbucketIDToEmail(ctx workflow.Context, accountID string) string
- func BitbucketIDToSlackID(ctx workflow.Context, accountID string, checkOptIn bool) string
- func BitbucketIDToSlackRef(ctx workflow.Context, accountID, displayName string) string
- func EmailToBitbucketID(ctx workflow.Context, email string) string
- func EmailToSlackID(ctx workflow.Context, email string) string
- func GitHubIDToEmail(ctx workflow.Context, username string) string
- func GitHubIDToSlackID(ctx workflow.Context, username string, checkOptIn bool) string
- func GitHubIDToSlackRef(ctx workflow.Context, username, url, userType string) string
- func SlackIDToDisplayName(ctx workflow.Context, userID string) string
- func SlackIDToEmail(ctx workflow.Context, userID string) string
- func SlackIDToIcon(ctx workflow.Context, userID string) string
- func SlackIDToRealName(ctx workflow.Context, userID string) string
- func SlackMentionToBitbucketRef(ctx workflow.Context, slackUserRef string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitbucketIDToEmail ¶ added in v1.1.0
BitbucketIDToEmail is a trivial wrapper around data.BitbucketIDToEmail.
func BitbucketIDToSlackID ¶ added in v1.1.0
BitbucketIDToSlackID converts a Bitbucket account ID into a Slack user ID. This function returns an empty string if the account ID is not found. It uses persistent data storage, or API calls as a fallback.
func BitbucketIDToSlackRef ¶ added in v1.1.0
BitbucketIDToSlackRef converts a Bitbucket account ID into a Slack user mention. This function returns a display name if the account ID is not found. It uses persistent data storage, or API calls as a fallback.
func EmailToBitbucketID ¶ added in v0.4.0
EmailToBitbucketID retrieves a Bitbucket user's account ID based on their email address. This function returns an empty string if the account ID is not found. It uses persistent data storage, or API calls as a fallback.
func EmailToSlackID ¶
EmailToSlackID retrieves a Slack user's ID based on their email address. This function returns an empty string if the user ID is not found. It uses persistent data storage, or API calls as a fallback.
func GitHubIDToEmail ¶ added in v1.1.0
GitHubIDToEmail converts a GitHub username into an email address. This function returns an empty string if the username is not found. It uses persistent data storage, or API calls as a fallback.
func GitHubIDToSlackID ¶ added in v1.1.0
GitHubIDToSlackID converts a GitHub username into a Slack user ID. This function returns an empty string if the username is not found, or if it belongs to a GitHub team. It uses persistent data storage, or API calls as a fallback.
func GitHubIDToSlackRef ¶ added in v1.1.0
GitHubIDToSlackRef converts a GitHub user into a Slack user reference. This function returns a GitHub profile link (in Slack markdown format) if the user is not found in Slack, or if it's a GitHub bot/team. It uses persistent data storage, or API calls as a fallback.
func SlackIDToDisplayName ¶ added in v0.9.0
SlackIDToDisplayName retrieves a Slack user's display name based on their ID. This function uses ephemeral data caching, or API calls as a fallback. Note that display names are not permanent like SlackIDToRealName.
func SlackIDToEmail ¶ added in v0.4.0
SlackIDToEmail converts a Slack user's ID into their email address. This function returns an empty string if the user ID is not found. It uses persistent data storage, or API calls as a fallback.
func SlackIDToIcon ¶ added in v1.0.0
SlackIDToIcon retrieves a Slack user's icon path based on their ID. This function uses ephemeral data caching, or API calls as a fallback.
func SlackIDToRealName ¶ added in v0.9.0
SlackIDToRealName retrieves a Slack user's full name based on their ID. This function uses persistent data storage, or API calls as a fallback. Note that real names are permanent unlike SlackIDToDisplayName.
func SlackMentionToBitbucketRef ¶ added in v1.1.0
SlackMentionToBitbucketRef converts a Slack user mention ("<@U123>") into a Bitbucket account ID ("@{account:uuid}"). This function returns the user's full/display name if the user is not found. It uses persistent data storage, or API calls as a fallback.
Types ¶
This section is empty.