Documentation
¶
Index ¶
- func CreateIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)
- func GreetingView(user string, isChannelAdmin bool, settings *config.ManagerSettings) ([]slack.Block, error)
- func InfoChannelView(templateContent, templatePath, user string) ([]slack.Block, error)
- func IssueDetailsAssets(issue *models.Issue) (slack.Blocks, error)
- func MoveIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)
- func NotAdminView(user string, settings *config.ManagerSettings) ([]slack.Block, error)
- func WebhookInputView(webhook *types.Webhook) []slack.Block
- func WebhookStatusModal(outcome *models.WebhookOutcome) slack.ModalViewRequest
- func WebhookStatusText(outcome *models.WebhookOutcome) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIssueModal ¶
func CreateIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)
func GreetingView ¶
func InfoChannelView ¶
InfoChannelView renders the info-channel greeting blocks. templateContent takes precedence over templatePath when both are non-empty.
templateContent may be a plain Go template string or a standard base64-encoded (RFC 4648, with padding) Go template string. Base64 encoding is detected automatically: if the value decodes successfully to valid UTF-8, the decoded form is used; otherwise the raw string is treated as a plain template.
func MoveIssueModal ¶
func MoveIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)
func NotAdminView ¶
func WebhookStatusModal ¶ added in v0.18.0
func WebhookStatusModal(outcome *models.WebhookOutcome) slack.ModalViewRequest
WebhookStatusModal returns a modal view showing the status of a user-triggered webhook. The modal has no submit button, only a close button.
func WebhookStatusText ¶ added in v0.18.0
func WebhookStatusText(outcome *models.WebhookOutcome) string
WebhookStatusText returns a plain text message describing the status of a user-triggered webhook, e.g. for an ephemeral message. The outcome message (from the receiving system) is included as is, so the text must be rendered as plain text, or with escaping (no Slack mentions or links).
Types ¶
This section is empty.