跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Lists all jobs for a workflow run

GET
/repos/{owner}/{repo}/actions/runs/{run}/jobs
curl --request GET \
--url https://gitea.com/api/v1/repos/example/example/actions/runs/1/jobs \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repository

run
required
integer

Runid of the workflow run

status
string

Workflow status (pending, queued, in_progress, failure, success, skipped)

page
integer

Page number of results to return (1-based)

limit
integer

Page size of results

sort
string

Sort jobs by attribute. Supported values are “id”. Default is “id”

order
string

Sort order, either “asc” (ascending) or “desc” (descending). Default is “asc”

WorkflowJobsList

Media typeapplication/json

ActionWorkflowJobsResponse returns ActionWorkflowJobs

object
jobs
Array<object>

ActionWorkflowJob represents a WorkflowJob

object
completed_at
string format: date-time
conclusion
string
created_at
string format: date-time
head_branch
string
head_sha
string
html_url
string
id
integer format: int64
labels
Array<string>
name
string
run_attempt
integer format: int64
run_id
integer format: int64
run_url
string
runner_id
integer format: int64
runner_name
string
started_at
string format: date-time
status
string
steps
Array<object>

ActionWorkflowStep represents a step of a WorkflowJob

object
completed_at
string format: date-time
conclusion
string
name
string
number
integer format: int64
started_at
string format: date-time
status
string
url
string
total_count
integer format: int64
Examplegenerated
{
"jobs": [
{
"completed_at": "2026-04-15T12:00:00Z",
"conclusion": "example",
"created_at": "2026-04-15T12:00:00Z",
"head_branch": "example",
"head_sha": "example",
"html_url": "example",
"id": 1,
"labels": [
"example"
],
"name": "example",
"run_attempt": 1,
"run_id": 1,
"run_url": "example",
"runner_id": 1,
"runner_name": "example",
"started_at": "2026-04-15T12:00:00Z",
"status": "example",
"steps": [
{
"completed_at": "2026-04-15T12:00:00Z",
"conclusion": "example",
"name": "example",
"number": 1,
"started_at": "2026-04-15T12:00:00Z",
"status": "example"
}
],
"url": "example"
}
],
"total_count": 1
}

APIError is error format response

Media typeapplication/json
message
string
url
string

APINotFound is a not found empty response

Media typeapplication/json

APIValidationError is error format response related to input validation

Media typeapplication/json
message
string
url
string