decision

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlashCommand = "/decision"

	TitleBlockID = "title_block"
	TitleInputID = "title_input"

	CategoryBlockID  = "category_block"
	CategorySelectID = "category_select"

	ContextBlockID = "context_block"
	ContextInputID = "context_input"

	DecisionBlockID = "decision_block"
	DecisionInputID = "decision_input"

	ConsequencesBlockID = "consequences_block"
	ConsequencesInputID = "consequences_input"

	LogDecisionCallbackID = "log_decision"
)

Variables

View Source
var (
	Token       string
	CommitAsPRs bool
)

Functions

This section is empty.

Types

type Client added in v1.0.1

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v1.0.1

func NewClient(token string, gitProvider provider.Provider) *Client

func (*Client) GetAPI added in v1.1.0

func (c *Client) GetAPI() *slack.Client

func (*Client) GetCategoryOptions added in v1.0.1

func (c *Client) GetCategoryOptions(typeAheadValue *string) slack.OptionsResponse

func (*Client) HandleModalSubmission added in v1.0.1

func (c *Client) HandleModalSubmission(payload *slack.InteractionCallback) error

func (*Client) OpenDecisionModal added in v1.0.1

func (c *Client) OpenDecisionModal(triggerID string, triggerChannel string, options ...Option) (*slack.View, error)

type Decision

type Decision struct {
	Title        string
	SlackHandle  string
	TeamID       string
	UserID       string
	Category     string
	Date         string
	Context      string
	Decision     string
	Consequences string
}

type Option added in v1.3.5

type Option = func(*Decision)

func WithConsequences added in v1.3.5

func WithConsequences(consequences string) Option

func WithContext added in v1.3.5

func WithContext(context string) Option

func WithDecision added in v1.3.5

func WithDecision(decision string) Option

func WithTitle added in v1.3.5

func WithTitle(title string) Option

Jump to

Keyboard shortcuts

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