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

msg

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppResults

type AppResults struct {
	// contains filtered or unexported fields
}

func (*AppResults) AddCheckResult

func (ar *AppResults) AddCheckResult(result Result)

type Message

type Message struct {
	Name    string
	Owner   string
	CheckID int
	NoteID  int
	// contains filtered or unexported fields
}

Message type that allows concurrent updates Has a reference to the owner/repo (ie zapier/kubechecks), the PR/MR id, and the actual messsage

func NewMessage

func NewMessage(name string, prId, commentId int, vcs toEmoji) *Message

func (*Message) AddNewApp

func (m *Message) AddNewApp(ctx context.Context, app string)

func (*Message) AddToAppMessage

func (m *Message) AddToAppMessage(ctx context.Context, app string, result Result)

func (*Message) BuildComment

func (m *Message) BuildComment(ctx context.Context, start time.Time, commitSHA, labelFilter string, showDebugInfo bool) string

BuildComment iterates the map of all apps in this message, building a final comment from their current state

func (*Message) RemoveApp

func (m *Message) RemoveApp(app string)

func (*Message) WorstState

func (m *Message) WorstState() pkg.CommitState

type Result

type Result struct {
	State             pkg.CommitState
	Summary, Details  string
	NoChangesDetected bool
}

Jump to

Keyboard shortcuts

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