Get-GitHubAgentAutomationAutomationRevision
SYNOPSIS
Get an automation revision
SYNTAX
__AllParameterSets
Get-GitHubAgentAutomationAutomationRevision [-Owner] <string> [-Repo] <string>
[-AutomationId] <string> [-RevisionId] <string> [-Accept <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHAgentAutomationAutomationRevision
DESCRIPTION
The Get-GitHubAgentAutomationAutomationRevision cmdlet invokes the GET method of the /agents/repos/{owner}/{repo}/automations/{automation_id}/revisions/{revision_id} endpoint (Get an automation revision)
[!NOTE] This endpoint is in public preview and is subject to change.
Returns a specific revision of an automation, including its configuration after that change.
Access follows the automation’s own ownership rules: a user-owned automation’s history is readable only by its creator, and a repository-owned automation’s history follows repository read access. History remains readable after the automation is deleted.
A revision ID belonging to a different automation returns ‘404’.
Fine-grained access tokens for “Get an automation revision”
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}/automations/{automation_id}/revisions/{revision_id} API version: 2026-03-10
EXAMPLES
EXAMPLE 1
' -RevisionId '<revision_id>'
Invokes GET /agents/repos/{owner}/{repo}/automations/{automation_id}/revisions/{revision_id}
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: ''
-AutomationId
The unique identifier of the automation.
Path parameter [ automation_id ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
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: ''
-RevisionId
The unique identifier of the automation revision.
Path parameter [ revision_id ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
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/get-automation-revision Category: agent-automations / agent-automations