run

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 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"`
	BillingOwnerID string `json:"billingOwnerId,omitempty"`
}

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"`
	StepNumber            int64           `json:"stepNumber"`
}

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"`
	Telemetry      []Telemetry                       `json:"telemetry,omitempty"`
	EnvironmentURL string                            `json:"environmentUrl,omitempty"`
	BillingOwnerID string                            `json:"billingOwnerId,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"`
	ActionName        string       `json:"action_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

type Telemetry added in v0.11.0

type Telemetry struct {
	Message string `json:"message,omitempty"`
	Type    string `json:"type,omitempty"`
}

Jump to

Keyboard shortcuts

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