Get-GitHubAgentTaskTasksForRepo
SYNOPSIS
List tasks for repository
SYNTAX
__AllParameterSets
Get-GitHubAgentTaskTasksForRepo [-Owner] <string> [-Repo] <string> [-PerPage <long>] [-Page <long>]
[-Sort <string>] [-Direction <string>] [-State <string>] [-IsArchived] [-Since <datetime>]
[-CreatorId <long[]>] [-AllResults] [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHAgentTaskTasksForRepo
DESCRIPTION
The Get-GitHubAgentTaskTasksForRepo cmdlet invokes the GET method of the /agents/repos/{owner}/{repo}/tasks endpoint (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:
- GitHub App user access tokens (https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app)
- Fine-grained personal access tokens (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)
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.
Endpoint: GET /agents/repos/{owner}/{repo}/tasks API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubAgentTaskTasksForRepo -Owner 'octocat' -Repo 'Hello-World'
Invokes GET /agents/repos/{owner}/{repo}/tasks
EXAMPLE 2
Get-GitHubAgentTaskTasksForRepo -Owner 'octocat' -Repo 'Hello-World' -AllResults
Returns the items of every page
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-AllResults
Follows the pagination links & returns the items of every page. 100 items are requested per page unless the per page parameter is used
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-CreatorId
Filter tasks by creator user ID. Accepts one or more user IDs.
Query parameter [ creator_id ]
Type: System.Int64[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Direction
The direction to sort results. Can be ‘asc’ or ‘desc’.
Query parameter [ direction ]
Default value: desc
Allowed values: ‘asc’, ‘desc’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-IsArchived
Filter by archived status. When ‘true’, returns only archived tasks. When ‘false’ or omitted, returns only non-archived tasks. Defaults to ‘false’.
Query parameter [ is_archived ]
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Owner
The account owner of the repository. The name is not case sensitive.
Path parameter [ owner ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Page
The page number of the results to fetch.
Query parameter [ page ]
Default value: 1
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PerPage
The number of results per page (max 100).
Query parameter [ per_page ]
Default value: 30
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Repo
The name of the repository. The name is not case sensitive.
Path parameter [ repo ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Since
Only show tasks updated at or after this time (ISO 8601 timestamp)
Query parameter [ since ]
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Sort
The field to sort results by. Can be ‘updated_at’ or ‘created_at’.
Query parameter [ sort ]
Default value: updated_at
Allowed values: ‘updated_at’, ‘created_at’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-State
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’.
Query parameter [ state ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: agent-tasks/list-tasks-for-repo Category: agent-tasks / agent-tasks