Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 RenewJobResponse ¶
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
Click to show internal directories.
Click to hide internal directories.