pub struct WorkflowRun {Show 35 fields
pub actor: User,
pub artifacts_url: String,
pub cancel_url: String,
pub check_suite_id: i64,
pub check_suite_node_id: String,
pub check_suite_url: String,
pub conclusion: Option<WorkflowRunConclusion>,
pub created_at: DateTime<Utc>,
pub display_title: String,
pub event: String,
pub head_branch: String,
pub head_commit: CommitSimple,
pub head_repository: RepositoryLite,
pub head_sha: String,
pub html_url: String,
pub id: i64,
pub jobs_url: String,
pub logs_url: String,
pub name: String,
pub node_id: String,
pub path: String,
pub previous_attempt_url: Option<String>,
pub pull_requests: Vec<WorkflowRunPullRequestsItem>,
pub referenced_workflows: Vec<ReferencedWorkflow>,
pub repository: RepositoryLite,
pub rerun_url: String,
pub run_attempt: i64,
pub run_number: i64,
pub run_started_at: DateTime<Utc>,
pub status: WorkflowRunStatus,
pub triggering_actor: User,
pub updated_at: DateTime<Utc>,
pub url: String,
pub workflow_id: i64,
pub workflow_url: String,
}
Expand description
WorkflowRun
JSON schema
{
"title": "Workflow Run",
"type": "object",
"required": [
"actor",
"artifacts_url",
"cancel_url",
"check_suite_id",
"check_suite_node_id",
"check_suite_url",
"conclusion",
"created_at",
"display_title",
"event",
"head_branch",
"head_commit",
"head_repository",
"head_sha",
"html_url",
"id",
"jobs_url",
"logs_url",
"name",
"node_id",
"path",
"previous_attempt_url",
"pull_requests",
"repository",
"rerun_url",
"run_attempt",
"run_number",
"run_started_at",
"status",
"triggering_actor",
"updated_at",
"url",
"workflow_id",
"workflow_url"
],
"properties": {
"actor": {
"$ref": "#/definitions/user"
},
"artifacts_url": {
"description": "The URL to the artifacts for the workflow run.",
"type": "string",
"format": "uri"
},
"cancel_url": {
"description": "The URL to cancel the workflow run.",
"type": "string",
"format": "uri"
},
"check_suite_id": {
"description": "The ID of the associated check suite.",
"type": "integer"
},
"check_suite_node_id": {
"description": "The node ID of the associated check suite.",
"type": "string"
},
"check_suite_url": {
"description": "The URL to the associated check suite.",
"type": "string",
"format": "uri"
},
"conclusion": {
"type": [
"string",
"null"
],
"enum": [
"success",
"failure",
"neutral",
"cancelled",
"timed_out",
"action_required",
"stale",
"skipped",
null
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"display_title": {
"type": "string"
},
"event": {
"type": "string"
},
"head_branch": {
"type": "string"
},
"head_commit": {
"$ref": "#/definitions/commit-simple"
},
"head_repository": {
"$ref": "#/definitions/repository-lite"
},
"head_sha": {
"description": "The SHA of the head commit that points to the version of the workflow being run.",
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "The ID of the workflow run.",
"type": "integer"
},
"jobs_url": {
"description": "The URL to the jobs for the workflow run.",
"type": "string",
"format": "uri"
},
"logs_url": {
"description": "The URL to download the logs for the workflow run.",
"type": "string",
"format": "uri"
},
"name": {
"description": "The name of the workflow run.",
"type": "string"
},
"node_id": {
"type": "string"
},
"path": {
"description": "The full path of the workflow",
"type": "string"
},
"previous_attempt_url": {
"description": "The URL to the previous attempted run of this workflow, if one exists.",
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"pull_requests": {
"type": "array",
"items": {
"type": "object",
"required": [
"base",
"head",
"id",
"number",
"url"
],
"properties": {
"base": {
"type": "object",
"required": [
"ref",
"repo",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"repo": {
"$ref": "#/definitions/repo-ref"
},
"sha": {
"type": "string"
}
},
"additionalProperties": false
},
"head": {
"type": "object",
"required": [
"ref",
"repo",
"sha"
],
"properties": {
"ref": {
"type": "string"
},
"repo": {
"$ref": "#/definitions/repo-ref"
},
"sha": {
"type": "string"
}
},
"additionalProperties": false
},
"id": {
"type": "number"
},
"number": {
"type": "number"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"referenced_workflows": {
"type": "array",
"items": {
"$ref": "#/definitions/referenced-workflow"
}
},
"repository": {
"$ref": "#/definitions/repository-lite"
},
"rerun_url": {
"description": "The URL to rerun the workflow run.",
"type": "string",
"format": "uri"
},
"run_attempt": {
"description": "Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.",
"type": "integer"
},
"run_number": {
"description": "The auto incrementing run number for the workflow run.",
"type": "integer"
},
"run_started_at": {
"description": "The start time of the latest run. Resets on re-run.",
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"requested",
"in_progress",
"completed",
"queued",
"waiting"
]
},
"triggering_actor": {
"$ref": "#/definitions/user"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"url": {
"description": "The URL to the workflow run.",
"type": "string",
"format": "uri"
},
"workflow_id": {
"description": "The ID of the parent workflow.",
"type": "integer"
},
"workflow_url": {
"description": "The URL to the workflow.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§actor: User
§artifacts_url: String
The URL to the artifacts for the workflow run.
cancel_url: String
The URL to cancel the workflow run.
check_suite_id: i64
The ID of the associated check suite.
check_suite_node_id: String
The node ID of the associated check suite.
check_suite_url: String
The URL to the associated check suite.
conclusion: Option<WorkflowRunConclusion>
§created_at: DateTime<Utc>
§display_title: String
§event: String
§head_branch: String
§head_commit: CommitSimple
§head_repository: RepositoryLite
§head_sha: String
The SHA of the head commit that points to the version of the workflow being run.
html_url: String
§id: i64
The ID of the workflow run.
jobs_url: String
The URL to the jobs for the workflow run.
logs_url: String
The URL to download the logs for the workflow run.
name: String
The name of the workflow run.
node_id: String
§path: String
The full path of the workflow
previous_attempt_url: Option<String>
The URL to the previous attempted run of this workflow, if one exists.
pull_requests: Vec<WorkflowRunPullRequestsItem>
§referenced_workflows: Vec<ReferencedWorkflow>
§repository: RepositoryLite
§rerun_url: String
The URL to rerun the workflow run.
run_attempt: i64
Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.
run_number: i64
The auto incrementing run number for the workflow run.
run_started_at: DateTime<Utc>
The start time of the latest run. Resets on re-run.
status: WorkflowRunStatus
§triggering_actor: User
§updated_at: DateTime<Utc>
§url: String
The URL to the workflow run.
workflow_id: i64
The ID of the parent workflow.
workflow_url: String
The URL to the workflow.
Implementations§
Source§impl WorkflowRun
impl WorkflowRun
pub fn builder() -> WorkflowRun
Trait Implementations§
Source§impl Clone for WorkflowRun
impl Clone for WorkflowRun
Source§fn clone(&self) -> WorkflowRun
fn clone(&self) -> WorkflowRun
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more