Skip to main content
Version: 2.2.1-preview

Test-AzdoOrganizationCopilotCodeReview

SYNOPSIS

Returns a boolean depending on the configuration.

SYNTAX

Test-AzdoOrganizationCopilotCodeReview [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Checks if repositories in the organization are allowed to use GitHub Copilot code review.

GitHub Copilot code review is a preview feature. The organization level setting has no documented REST API and is only exposed through the contribution data provider that the Organization settings > Repositories page calls, so this test posts to the HierarchyQuery endpoint and reads the 'ms.vss-code-web.copilot-code-review-org-settings-data-provider' provider.

The setting is read from the data provider rather than from the SourceControl.GitPullRequests.CopilotReview feature flag returned alongside it, because feature flags describe rollout state rather than configuration.

Requires permission to view the organization repository settings.

EXAMPLES

EXAMPLE 1

Test-AzdoOrganizationCopilotCodeReview

Returns a boolean depending on the configuration.

PARAMETERS

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Boolean

NOTES

https://maester.dev/docs/commands/Test-AzdoOrganizationCopilotCodeReview