run

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueGetAnnotationNumber

func IssueGetAnnotationNumber(issue protocol.Issue, name string, def int64) int64

Types

type AcquireJobRequest

type AcquireJobRequest struct {
	StreamID     string `json:"streamId,omitempty"` // Deprecated: https://github.com/actions/runner/pull/2547
	JobMessageID string `json:"jobMessageId"`
}

type Annotation

type Annotation struct {
	Level                 AnnotationLevel `json:"level"`
	Message               string          `json:"message"`
	RawDetails            string          `json:"rawDetails"`
	Path                  string          `json:"path"`
	IsInfrastructureIssue bool            `json:"isInfrastructureIssue"`
	StartLine             int64           `json:"startLine"`
	EndLine               int64           `json:"endLine"`
	StartColumn           int64           `json:"startColumn"`
	EndColumn             int64           `json:"endColumn"`
}

func IssueToAnnotation

func IssueToAnnotation(issue protocol.Issue) Annotation

type AnnotationLevel

type AnnotationLevel string
const (
	UNKNOWN AnnotationLevel = "UNKNOWN"
	NOTICE  AnnotationLevel = "NOTICE"
	WARNING AnnotationLevel = "WARNING"
	FAILURE AnnotationLevel = "FAILURE"
)

func IssueGetAnnotationLevel

func IssueGetAnnotationLevel(issueType string) AnnotationLevel

type CompleteJobRequest

type CompleteJobRequest struct {
	PlanID      string                            `json:"planId,omitempty"`
	JobID       string                            `json:"jobId,omitempty"`
	Conclusion  string                            `json:"conclusion"`
	Outputs     map[string]protocol.VariableValue `json:"outputs,omitempty"`
	StepResults []StepResult                      `json:"stepResults,omitempty"`
	Annotations []Annotation                      `json:"annotations,omitempty"`
}

type RenewJobRequest

type RenewJobRequest struct {
	PlanID string `json:"planId,omitempty"`
	JobID  string `json:"jobId,omitempty"`
}

type RenewJobResponse

type RenewJobResponse struct {
	LockedUntil time.Time `json:"lockedUntil"`
}

type StepResult

type StepResult struct {
	ExternalID        string       `json:"external_id,omitempty"`
	Number            int          `json:"number,omitempty"`
	Name              string       `json:"name,omitempty"`
	Status            string       `json:"status,omitempty"`
	Conclusion        *string      `json:"conclusion,omitempty"`
	StartedAt         string       `json:"started_at,omitempty"`
	CompletedAt       *string      `json:"completed_at,omitempty"`
	CompletedLogURL   string       `json:"completed_log_url,omitempty"`
	CompletedLogLines *int64       `json:"completed_log_lines,omitempty"`
	Annotations       []Annotation `json:"annotations,omitempty"`
}

func TimeLineRecordToStepResult

func TimeLineRecordToStepResult(rec protocol.TimelineRecord) StepResult

Jump to

Keyboard shortcuts

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