views

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIssueModal

func CreateIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)

func GreetingView

func GreetingView(user string, isChannelAdmin bool, settings *config.ManagerSettings) ([]slack.Block, error)

func InfoChannelView

func InfoChannelView(templateContent, templatePath, user string) ([]slack.Block, error)

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 IssueDetailsAssets

func IssueDetailsAssets(issue *models.Issue) (slack.Blocks, error)

func MoveIssueModal

func MoveIssueModal(settings *config.ManagerSettings) (slack.Blocks, error)

func NotAdminView

func NotAdminView(user string, settings *config.ManagerSettings) ([]slack.Block, error)

func WebhookInputView

func WebhookInputView(webhook *types.Webhook) []slack.Block

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.

Jump to

Keyboard shortcuts

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