users

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func EmailToSlackID(ctx workflow.Context, cmd *cli.Command, email string) string

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

func GitHubToSlackRef(ctx workflow.Context, cmd *cli.Command, username, url string) string

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.

Jump to

Keyboard shortcuts

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