Get-GitHubAgentAutomationAvailableRepoAutomationTriggers
SYNOPSIS
List available automation triggers for a repository
SYNTAX
__AllParameterSets
Get-GitHubAgentAutomationAvailableRepoAutomationTriggers [-Owner] <string> [-Repo] <string>
[-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHAgentAutomationAvailableRepoAutomationTriggers
DESCRIPTION
The Get-GitHubAgentAutomationAvailableRepoAutomationTriggers cmdlet invokes the GET method of the /agents/repos/{owner}/{repo}/automations/available-triggers endpoint (List available automation triggers for a repository)
[!NOTE] This endpoint is in public preview and is subject to change.
Lists available triggers for automations in a repository.
Each available trigger includes a title and description that can be presented in user interfaces, plus a machine-readable schema of filters supported by the trigger.
GitHub App installation access tokens can list available automation triggers. The installation must belong to the repository owner and the token must have “Agent tasks” repository permissions (read).
To call this endpoint, OAuth app tokens and personal access tokens (classic) need the ‘repo’ scope.
Fine-grained access tokens for “List available automation triggers for a 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)
- GitHub App installation access tokens (https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-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)
Endpoint: GET /agents/repos/{owner}/{repo}/automations/available-triggers API version: 2026-03-10
EXAMPLES
EXAMPLE 1
Get-GitHubAgentAutomationAvailableRepoAutomationTriggers -Owner 'octocat' -Repo 'Hello-World'
Invokes GET /agents/repos/{owner}/{repo}/automations/available-triggers
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: ''
-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: ''
-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: ''
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-automations/list-available-repo-automation-triggers Category: agent-automations / agent-automations