Get-GitHubActionsConcurrencyGroupForRepository

SYNOPSIS

Get a concurrency group for a repository

SYNTAX

__AllParameterSets

Get-GitHubActionsConcurrencyGroupForRepository [-Owner] <string> [-Repo] <string>
 [-ConcurrencyGroupName] <string> [-AheadOfRun <long>] [-AheadOfJob <long>] [-Accept <string>]

ALIASES

This cmdlet has the following aliases,

  • Get-GHActionsConcurrencyGroupForRepository

DESCRIPTION

The Get-GitHubActionsConcurrencyGroupForRepository cmdlet invokes the GET method of the /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name} endpoint (Get a concurrency group for a repository)

Gets a specific concurrency group for a repository, including all instances in the group’s queue. Returns 404 if the group is inactive or does not exist.

Optionally, pass ‘ahead_of_run’ or ‘ahead_of_job’ to filter the results to only the items ahead of the specified workflow run or job in the queue, plus the specified item itself (returned as the last element). This is useful for determining what is blocking a particular run or job. Returns 422 if the specified run or job is not in this concurrency group.

When using ‘ahead_of_run’, this matches workflow-level concurrency and any reusable-workflow leases held on behalf of that run. Job-level leases within the run are not considered to block the run as a whole. Use ‘ahead_of_job’ to match job-level concurrency and reusable-workflow leases on the job’s ancestor paths.

OAuth app tokens and personal access tokens (classic) need the ‘repo’ scope to use this endpoint with a private repository.

Endpoint: GET /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name} API version: 2026-03-10

EXAMPLES

EXAMPLE 1

'

Invokes GET /repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name}

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: ''

-AheadOfJob

Filter to items ahead of this job ID in the queue, plus the job itself. Matches job-level concurrency and reusable-workflow leases on the job’s ancestor paths. Mutually exclusive with ‘ahead_of_run’.

Query parameter [ ahead_of_job ]

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: ''

-AheadOfRun

Filter to items ahead of this workflow run ID in the queue, plus the run itself. Matches workflow-level concurrency and reusable-workflow leases held on behalf of the run. Mutually exclusive with ‘ahead_of_job’.

Query parameter [ ahead_of_run ]

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: ''

-ConcurrencyGroupName

The name of the concurrency group.

Path parameter [ concurrency_group_name ]

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 without the ‘.git’ extension. 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: actions/get-concurrency-group-for-repository Category: actions / concurrency-groups