msg

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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) string

func (*Message) RemoveApp

func (m *Message) RemoveApp(app string)

func (*Message) SetFooter

func (m *Message) SetFooter(start time.Time, commitSHA, labelFilter string, showDebugInfo bool)

func (*Message) WorstState

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

type Result

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

Jump to

Keyboard shortcuts

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