changes

package
v0.0.0-...-46430ab Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModalCallbackID = "change-declare"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeContext

type ChangeContext struct {
	UserID            string
	Username          string
	AnnounceChannelID string
	TeamID            string
}

type ChangeModalHandler

type ChangeModalHandler struct {
	JobRunner                   *woodhouse.AsyncJobRunner
	SlackClient                 *slack.Client
	GitlabClient                *gitlab.Client
	GitlabProductionProjectPath string
	GitLabProfileSlackFieldID   string
}

func (*ChangeModalHandler) Handle

func (*ChangeModalHandler) Validate

type Criticality

type Criticality int

func ParseCriticalityFromIssueLabel

func ParseCriticalityFromIssueLabel(label string) (Criticality, error)

func (Criticality) IsC1C2

func (c Criticality) IsC1C2() bool

func (Criticality) IssueLabel

func (c Criticality) IssueLabel() string

func (Criticality) SlackEmoji

func (c Criticality) SlackEmoji() string

type SlashCommand

type SlashCommand struct {
	SlackClient                 *slack.Client
	JobRunner                   *woodhouse.AsyncJobRunner
	ChangeChannelID             string
	GitlabProductionProjectPath string
	GitlabGlInfraGroup          string
	GitlabClient                *gitlab.Client
}

func (*SlashCommand) Handle

func (s *SlashCommand) Handle(
	event *instrumentation.Event, commandName string, command slack.SlashCommand,
	w http.ResponseWriter, req *http.Request,
)

Jump to

Keyboard shortcuts

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