decision

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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)

type Decision

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

Jump to

Keyboard shortcuts

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