List tasks for repository
[!NOTE] This endpoint is in public preview and is subject to change.
Returns a list of tasks for a specific repository
Fine-grained access tokens for "List tasks for repository"
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
- "Agent tasks" repository permissions (read)
GitHub App installation access tokens are not supported for this endpoint.
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository. The name is not case sensitive.
Query parameters
The number of results per page (max 100).
The page number of the results to fetch.
The field to sort results by. Can be updated_at or created_at.
The direction to sort results. Can be asc or desc.
Comma-separated list of task states to filter by. Can be any combination of: queued, in_progress, completed, failed, idle, waiting_for_user, timed_out, cancelled.
Filter by archived status. When true, returns only archived tasks. When false or omitted, returns only non-archived tasks. Defaults to false.
Only show tasks updated at or after this time (ISO 8601 timestamp)
Filter tasks by creator user ID. Accepts one or more user IDs.
Response
Tasks retrieved successfully
Changes
Changed in 7 of the 62 revisions of this API.316
- ○
added the optional property
tasks/items/custom_agentto the response with the200statusresponse-optional-property-added
- ○
- ○
for the
queryrequest parametercreator_id, the type/format was generalized frominteger/toarray/request-parameter-type-generalized
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ▲
added
subschema #1subschema #2to thetasks/items/artifacts/items/dataresponse propertyoneOflist for the response status200response-property-one-of-added
- ●
added the new
pullenum value to thetasks/items/artifacts/items/typeresponse property for the response status200response-property-enum-value-added
- ○
removed the
github_resourceenum value from thetasks/items/artifacts/items/typeresponse property for the response status200response-property-enum-value-removed
- ○
removed
subschema #1subschema #2from thetasks/items/artifacts/items/dataresponse propertyoneOflist for the response status200response-property-one-of-removed
- ▲
- ▲
for the
queryrequest parameteris_archived, default valuefalsewas addedrequest-parameter-default-value-added
- ▲
- ○
endpoint added
endpoint-added
- ○