Copilot
44 commands (DELETE 5, GET 25, PATCH 2, POST 3, PUT 9). Write commands (POST, PUT, PATCH, DELETE) change data on GitHub, use -WhatIf to preview a request
| Command | Alias | Method | Endpoint | Synopsis |
|---|---|---|---|---|
| Get-GitHubCopilotCloudAgentConfiguration | Get-GHCopilotCloudAgentConfiguration | GET | /repos/{owner}/{repo}/copilot/cloud-agent/configuration |
Get Copilot cloud agent configuration for a repository |
| Get-GitHubCopilotCodingAgentPermissionsOrganization | Get-GHCopilotCodingAgentPermissionsOrganization | GET | /orgs/{org}/copilot/coding-agent/permissions |
Get Copilot cloud agent permissions for an organization |
| Get-GitHubCopilotCodingAgentSelectedRepositoriesForOrganization | Get-GHCopilotCodingAgentSelectedRepositoriesForOrganization | GET | /orgs/{org}/copilot/coding-agent/permissions/repositories |
List repositories enabled for Copilot cloud agent in an organization |
| Get-GitHubCopilotContentExclusionForOrganization | Get-GHCopilotContentExclusionForOrganization | GET | /orgs/{org}/copilot/content_exclusion |
Get Copilot content exclusion rules for an organization |
| Get-GitHubCopilotEnterpriseCodeReviewPolicy | Get-GHCopilotEnterpriseCodeReviewPolicy | GET | /enterprises/{enterprise}/copilot/policies/code-review |
Get the Copilot code review policy for an enterprise |
| Get-GitHubCopilotEnterpriseOneDayUsageMetrics | Get-GHCopilotEnterpriseOneDayUsageMetrics | GET | /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day |
Get Copilot enterprise usage metrics for a specific day |
| Get-GitHubCopilotEnterpriseReposOneDayReport | Get-GHCopilotEnterpriseReposOneDayReport | GET | /enterprises/{enterprise}/copilot/metrics/reports/repos-1-day |
Get Copilot enterprise repository report for a specific day |
| Get-GitHubCopilotEnterpriseUsageMetrics | Get-GHCopilotEnterpriseUsageMetrics | GET | /enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest |
Get Copilot enterprise usage metrics |
| Get-GitHubCopilotEnterpriseUserTeamsOneDayReport | Get-GHCopilotEnterpriseUserTeamsOneDayReport | GET | /enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day |
Get Copilot enterprise user-teams report for a specific day |
| Get-GitHubCopilotOrganizationCodeReviewPolicy | Get-GHCopilotOrganizationCodeReviewPolicy | GET | /orgs/{org}/copilot/policies/code-review |
Get the Copilot code review policy for an organization |
| Get-GitHubCopilotOrganizationCodeReviewRunner | Get-GHCopilotOrganizationCodeReviewRunner | GET | /orgs/{org}/copilot/code-review/runner |
Get the Copilot code review runner configuration for an organization |
| Get-GitHubCopilotOrganizationCodeReviewSettings | Get-GHCopilotOrganizationCodeReviewSettings | GET | /orgs/{org}/copilot/code-review/settings |
Get Copilot code review settings for an organization |
| Get-GitHubCopilotOrganizationDetails | Get-GHCopilotOrganizationDetails | GET | /orgs/{org}/copilot/billing |
Get Copilot seat information and settings for an organization |
| Get-GitHubCopilotOrganizationOneDayUsageMetrics | Get-GHCopilotOrganizationOneDayUsageMetrics | GET | /orgs/{org}/copilot/metrics/reports/organization-1-day |
Get Copilot organization usage metrics for a specific day |
| Get-GitHubCopilotOrganizationReposOneDayReport | Get-GHCopilotOrganizationReposOneDayReport | GET | /orgs/{org}/copilot/metrics/reports/repos-1-day |
Get Copilot organization repository report for a specific day |
| Get-GitHubCopilotOrganizationUsageMetrics | Get-GHCopilotOrganizationUsageMetrics | GET | /orgs/{org}/copilot/metrics/reports/organization-28-day/latest |
Get Copilot organization usage metrics |
| Get-GitHubCopilotOrganizationUserTeamsOneDayReport | Get-GHCopilotOrganizationUserTeamsOneDayReport | GET | /orgs/{org}/copilot/metrics/reports/user-teams-1-day |
Get Copilot organization user-teams report for a specific day |
| Get-GitHubCopilotOrganizationUsersOneDayUsageMetrics | Get-GHCopilotOrganizationUsersOneDayUsageMetrics | GET | /orgs/{org}/copilot/metrics/reports/users-1-day |
Get Copilot organization users usage metrics for a specific day |
| Get-GitHubCopilotOrganizationUsersUsageMetrics | Get-GHCopilotOrganizationUsersUsageMetrics | GET | /orgs/{org}/copilot/metrics/reports/users-28-day/latest |
Get Copilot organization users usage metrics |
| Get-GitHubCopilotRepositoryCodeReviewSettings | Get-GHCopilotRepositoryCodeReviewSettings | GET | /repos/{owner}/{repo}/copilot/code-review/settings |
Get Copilot code review settings for a repository |
| Get-GitHubCopilotSeatDetailsForUser | Get-GHCopilotSeatDetailsForUser | GET | /orgs/{org}/members/{username}/copilot |
Get Copilot seat assignment details for a user |
| Get-GitHubCopilotSeats | Get-GHCopilotSeats | GET | /orgs/{org}/copilot/billing/seats |
List all Copilot seat assignments for an organization |
| Get-GitHubCopilotTeamCustomizations | Get-GHCopilotTeamCustomizations | GET | /orgs/{org}/teams/{team_slug}/copilot/customizations |
Get Copilot customizations for a team |
| Get-GitHubCopilotUsersOneDayUsageMetrics | Get-GHCopilotUsersOneDayUsageMetrics | GET | /enterprises/{enterprise}/copilot/metrics/reports/users-1-day |
Get Copilot users usage metrics for a specific day |
| Get-GitHubCopilotUsersUsageMetrics | Get-GHCopilotUsersUsageMetrics | GET | /enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest |
Get Copilot users usage metrics |
| New-GitHubCopilotAddCopilotSeatsForTeams | Get-GHNewCopilotAddCopilotSeatsForTeams | POST | /orgs/{org}/copilot/billing/selected_teams |
Add teams to the Copilot subscription for an organization |
| New-GitHubCopilotAddCopilotSeatsForUsers | Get-GHNewCopilotAddCopilotSeatsForUsers | POST | /orgs/{org}/copilot/billing/selected_users |
Add users to the Copilot subscription for an organization |
| New-GitHubCopilotAddOrganizationsToEnterpriseCodingAgentPolicy | Get-GHNewCopilotAddOrganizationsToEnterpriseCodingAgentPolicy | POST | /enterprises/{enterprise}/copilot/policies/coding_agent/organizations |
Add organizations to the enterprise coding agent policy |
| Remove-GitHubCopilotCancelCopilotSeatAssignmentForTeams | Get-GHRemoveCopilotCancelCopilotSeatAssignmentForTeams | DELETE | /orgs/{org}/copilot/billing/selected_teams |
Remove teams from the Copilot subscription for an organization |
| Remove-GitHubCopilotCancelCopilotSeatAssignmentForUsers | Get-GHRemoveCopilotCancelCopilotSeatAssignmentForUsers | DELETE | /orgs/{org}/copilot/billing/selected_users |
Remove users from the Copilot subscription for an organization |
| Remove-GitHubCopilotDisableCopilotCodingAgentForRepositoryInOrganization | Get-GHRemoveCopilotDisableCopilotCodingAgentForRepositoryInOrganization | DELETE | /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id} |
Disable a repository for Copilot cloud agent in an organization |
| Remove-GitHubCopilotOrganizationsFromEnterpriseCodingAgentPolicy | Get-GHRemoveCopilotOrganizationsFromEnterpriseCodingAgentPolicy | DELETE | /enterprises/{enterprise}/copilot/policies/coding_agent/organizations |
Remove organizations from the enterprise coding agent policy |
| Remove-GitHubCopilotTeamCustomizations | Get-GHRemoveCopilotTeamCustomizations | DELETE | /orgs/{org}/teams/{team_slug}/copilot/customizations |
Delete Copilot customizations for a team |
| Set-GitHubCopilotCodingAgentPermissionsOrganization | Get-GHSetCopilotCodingAgentPermissionsOrganization | PUT | /orgs/{org}/copilot/coding-agent/permissions |
Set Copilot cloud agent permissions for an organization |
| Set-GitHubCopilotCodingAgentSelectedRepositoriesForOrganization | Get-GHSetCopilotCodingAgentSelectedRepositoriesForOrganization | PUT | /orgs/{org}/copilot/coding-agent/permissions/repositories |
Set selected repositories for Copilot cloud agent in an organization |
| Set-GitHubCopilotContentExclusionForOrganization | Get-GHSetCopilotContentExclusionForOrganization | PUT | /orgs/{org}/copilot/content_exclusion |
Set Copilot content exclusion rules for an organization |
| Set-GitHubCopilotEnableCopilotCodingAgentForRepositoryInOrganization | Get-GHSetCopilotEnableCopilotCodingAgentForRepositoryInOrganization | PUT | /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id} |
Enable a repository for Copilot cloud agent in an organization |
| Set-GitHubCopilotEnterpriseCodeReviewPolicy | Get-GHSetCopilotEnterpriseCodeReviewPolicy | PUT | /enterprises/{enterprise}/copilot/policies/code-review |
Set the Copilot code review policy for an enterprise |
| Set-GitHubCopilotEnterpriseCodingAgentPolicy | Get-GHSetCopilotEnterpriseCodingAgentPolicy | PUT | /enterprises/{enterprise}/copilot/policies/coding_agent |
Set the coding agent policy for an enterprise |
| Set-GitHubCopilotOrganizationCodeReviewPolicy | Get-GHSetCopilotOrganizationCodeReviewPolicy | PUT | /orgs/{org}/copilot/policies/code-review |
Set the Copilot code review policy for an organization |
| Set-GitHubCopilotOrganizationCodeReviewRunner | Get-GHSetCopilotOrganizationCodeReviewRunner | PUT | /orgs/{org}/copilot/code-review/runner |
Set the Copilot code review runner configuration for an organization |
| Set-GitHubCopilotOrganizationCodeReviewSettings | Get-GHSetCopilotOrganizationCodeReviewSettings | PATCH | /orgs/{org}/copilot/code-review/settings |
Update Copilot code review settings for an organization |
| Set-GitHubCopilotRepositoryCodeReviewSettings | Get-GHSetCopilotRepositoryCodeReviewSettings | PATCH | /repos/{owner}/{repo}/copilot/code-review/settings |
Update Copilot code review settings for a repository |
| Set-GitHubCopilotTeamCustomizations | Get-GHSetCopilotTeamCustomizations | PUT | /orgs/{org}/teams/{team_slug}/copilot/customizations |
Set Copilot customizations for a team |
Have a look around and if you would like to contribute please read over the Contributing guide
Table of contents
- Get-GitHubCopilotCloudAgentConfiguration
- Get-GitHubCopilotCodingAgentPermissionsOrganization
- Get-GitHubCopilotCodingAgentSelectedRepositoriesForOrganization
- Get-GitHubCopilotContentExclusionForOrganization
- Get-GitHubCopilotEnterpriseCodeReviewPolicy
- Get-GitHubCopilotEnterpriseOneDayUsageMetrics
- Get-GitHubCopilotEnterpriseReposOneDayReport
- Get-GitHubCopilotEnterpriseUsageMetrics
- Get-GitHubCopilotEnterpriseUserTeamsOneDayReport
- Get-GitHubCopilotOrganizationCodeReviewPolicy
- Get-GitHubCopilotOrganizationCodeReviewRunner
- Get-GitHubCopilotOrganizationCodeReviewSettings
- Get-GitHubCopilotOrganizationDetails
- Get-GitHubCopilotOrganizationOneDayUsageMetrics
- Get-GitHubCopilotOrganizationReposOneDayReport
- Get-GitHubCopilotOrganizationUsageMetrics
- Get-GitHubCopilotOrganizationUserTeamsOneDayReport
- Get-GitHubCopilotOrganizationUsersOneDayUsageMetrics
- Get-GitHubCopilotOrganizationUsersUsageMetrics
- Get-GitHubCopilotRepositoryCodeReviewSettings
- Get-GitHubCopilotSeatDetailsForUser
- Get-GitHubCopilotSeats
- Get-GitHubCopilotTeamCustomizations
- Get-GitHubCopilotUsersOneDayUsageMetrics
- Get-GitHubCopilotUsersUsageMetrics
- New-GitHubCopilotAddCopilotSeatsForTeams
- New-GitHubCopilotAddCopilotSeatsForUsers
- New-GitHubCopilotAddOrganizationsToEnterpriseCodingAgentPolicy
- Remove-GitHubCopilotCancelCopilotSeatAssignmentForTeams
- Remove-GitHubCopilotCancelCopilotSeatAssignmentForUsers
- Remove-GitHubCopilotDisableCopilotCodingAgentForRepositoryInOrganization
- Remove-GitHubCopilotOrganizationsFromEnterpriseCodingAgentPolicy
- Remove-GitHubCopilotTeamCustomizations
- Set-GitHubCopilotCodingAgentPermissionsOrganization
- Set-GitHubCopilotCodingAgentSelectedRepositoriesForOrganization
- Set-GitHubCopilotContentExclusionForOrganization
- Set-GitHubCopilotEnableCopilotCodingAgentForRepositoryInOrganization
- Set-GitHubCopilotEnterpriseCodeReviewPolicy
- Set-GitHubCopilotEnterpriseCodingAgentPolicy
- Set-GitHubCopilotOrganizationCodeReviewPolicy
- Set-GitHubCopilotOrganizationCodeReviewRunner
- Set-GitHubCopilotOrganizationCodeReviewSettings
- Set-GitHubCopilotRepositoryCodeReviewSettings
- Set-GitHubCopilotTeamCustomizations