decision

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func GetCategoryOptions

func GetCategoryOptions(typeAheadValue *string) slack.OptionsResponse

func HandleModalSubmission

func HandleModalSubmission(payload *slack.InteractionCallback)

func OpenDecisionModal

func OpenDecisionModal(triggerID string, triggerChannel string)

Types

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