constant

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LabelOutdatedDiff expresses the PR has outdated differences
	LabelOutdatedDiff = Label{
		Name:        fmt.Sprintf("%soutdated diffs", labelPrefix),
		Description: "Diffs are outdated. Run /diff again.",
		Color:       "e4e669",
	}
	// LabelRunning expresses command is running on the PR
	LabelRunning = Label{
		Name:        fmt.Sprintf("%srunning", labelPrefix),
		Description: "Now running",
		Color:       "0075ca",
	}
	// LabelDeployed expresses some stacks are deployed on the PR
	LabelDeployed = Label{
		Name:        fmt.Sprintf("%sdeployed", labelPrefix),
		Description: "Some stacks are deployed. Complete /deploy and merge, or /rollback them.",
		Color:       "a2eeef",
	}
	// NameToLabel is map of label's name to label
	NameToLabel = map[string]Label{
		LabelOutdatedDiff.Name: LabelOutdatedDiff,
		LabelRunning.Name:      LabelRunning,
		LabelDeployed.Name:     LabelDeployed,
	}
)

Functions

This section is empty.

Types

type Label

type Label struct {
	Name        string
	Description string
	Color       string
}

Label is label settings

type State

type State int

State is operation state

const (
	// StateRunning expresses operation is running
	StateRunning State = iota + 1
	// StateMergeReady expresses the PR is ready to merge
	StateMergeReady
	// StateNotMergeReady expresses the PR is not ready to merge
	StateNotMergeReady
	// StateError expresses error occurred
	StateError
)

Jump to

Keyboard shortcuts

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