Help us shape the future of Go! Take the 2026 Go Developer Survey

release

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	At   time.Time `json:"at"`
	Tag  string    `json:"tag"`
	Text string    `json:"text"`
}

type Stage

type Stage string
const (
	Opened       Stage = "opened"
	ChecksFailed Stage = "checks_failed"
	Merged       Stage = "merged"
	Deploying    Stage = "deploying"
	Deployed     Stage = "deployed"
	Failed       Stage = "failed"
	Cancelled    Stage = "cancelled"
	Closed       Stage = "closed"
)

type State

type State struct {
	Stage      Stage        `json:"stage,omitempty"`
	App        string       `json:"app,omitempty"`
	From       string       `json:"from,omitempty"`
	To         string       `json:"to,omitempty"`
	Image      string       `json:"image,omitempty"`
	Title      string       `json:"title,omitempty"`
	PR         int          `json:"pr,omitempty"`
	PRURL      string       `json:"pr_url,omitempty"`
	RunURL     string       `json:"run_url,omitempty"`
	MergedBy   string       `json:"merged_by,omitempty"`
	Commit     string       `json:"commit,omitempty"`
	Hosts      []event.Host `json:"hosts,omitempty"`
	FailedTask string       `json:"failed_task,omitempty"`
	Error      string       `json:"error,omitempty"`
	StartedAt  time.Time    `json:"started_at,omitzero"`
	FinishedAt time.Time    `json:"finished_at,omitzero"`
	NoChanges  bool         `json:"no_changes,omitempty"`
	Timeline   []Line       `json:"timeline,omitempty"`
	Seen       []string     `json:"seen,omitempty"`
}

func Apply

func Apply(s State, e event.Event) (State, bool)

Jump to

Keyboard shortcuts

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