diff --git a/src/classes/public/GitHubPermission.ps1 b/src/classes/public/GitHubPermission.ps1 index c3f07529d..a5de24983 100644 --- a/src/classes/public/GitHubPermission.ps1 +++ b/src/classes/public/GitHubPermission.ps1 @@ -98,6 +98,19 @@ 'Fine-grained', 'Repository' ), + [GitHubPermission]::new( + 'artifact_metadata', + 'Artifact metadata', + 'View and manage artifact metadata.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps' + + '#repository-permissions-for-artifact-metadata', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Repository' + ), [GitHubPermission]::new( 'checks', 'Checks', @@ -569,6 +582,18 @@ 'Fine-grained', 'Organization' ), + [GitHubPermission]::new( + 'custom_properties_for_organizations', + 'Custom properties for organizations', + 'View and manage custom properties for organizations.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Organization' + ), [GitHubPermission]::new( 'organization_custom_roles', 'Custom repository roles', @@ -607,6 +632,30 @@ 'Fine-grained', 'Organization' ), + [GitHubPermission]::new( + 'organization_copilot_metrics', + 'Organization Copilot metrics', + 'View Copilot metrics for an organization.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps' + + '#organization-permissions-for-organization-copilot-metrics', + @( + 'read' + ), + 'Fine-grained', + 'Organization' + ), + [GitHubPermission]::new( + 'organization_credentials', + 'Organization credentials', + 'View and manage organization credentials.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Organization' + ), [GitHubPermission]::new( 'issue_fields', 'Issue Fields', @@ -762,6 +811,18 @@ 'Fine-grained', 'Organization' ), + [GitHubPermission]::new( + 'organization_dependabot_dismissal_requests', + 'Organization Dependabot dismissal requests', + 'Review and manage Dependabot dismissal requests for an organization.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Organization' + ), [GitHubPermission]::new( 'organization_code_scanning_dismissal_requests', 'Organization dismissal requests for code scanning', @@ -788,6 +849,19 @@ 'Fine-grained', 'Organization' ), + [GitHubPermission]::new( + 'organization_runner_custom_images', + 'Hosted runner custom images', + 'View and manage hosted runner custom images for an organization.', + 'https://docs.github.com/rest/overview/permissions-required-for-github-apps' + + '#organization-permissions-for-hosted-runner-custom-images', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Organization' + ), [GitHubPermission]::new( 'organization_personal_access_token_requests', 'Personal access token requests', @@ -1157,6 +1231,18 @@ # ------------------------------ # Enterprise Fine-Grained Permission Definitions # ------------------------------ + [GitHubPermission]::new( + 'enterprise_ai_controls', + 'Enterprise AI controls', + 'View and manage AI controls for an enterprise.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Enterprise' + ), [GitHubPermission]::new( 'enterprise_custom_properties', 'Custom properties', @@ -1170,6 +1256,30 @@ 'Fine-grained', 'Enterprise' ), + [GitHubPermission]::new( + 'enterprise_copilot_metrics', + 'Enterprise Copilot metrics', + 'View Copilot metrics for an enterprise.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps' + + '#enterprise-permissions-for-enterprise-copilot-metrics', + @( + 'read' + ), + 'Fine-grained', + 'Enterprise' + ), + [GitHubPermission]::new( + 'enterprise_credentials', + 'Enterprise credentials', + 'View and manage enterprise credentials.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Enterprise' + ), [GitHubPermission]::new( 'enterprise_scim', 'Enterprise SCIM', @@ -1196,6 +1306,30 @@ 'Fine-grained', 'Enterprise' ), + [GitHubPermission]::new( + 'enterprise_custom_enterprise_roles', + 'Enterprise custom enterprise roles', + 'Create, edit, delete and list custom enterprise roles.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Enterprise' + ), + [GitHubPermission]::new( + 'enterprise_custom_properties_for_organizations', + 'Enterprise custom properties for organizations', + 'View and manage custom properties for organizations at the enterprise level.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Enterprise' + ), [GitHubPermission]::new( 'enterprise_organization_installation_repositories', 'Enterprise organization installation repositories', @@ -1259,6 +1393,19 @@ ), 'Fine-grained', 'Enterprise' + ), + [GitHubPermission]::new( + 'enterprise_teams', + 'Enterprise teams', + 'View and manage enterprise teams.', + 'https://docs.github.com/enterprise-cloud@latest/rest/overview/permissions-required-for-github-apps' + + '#enterprise-permissions-for-enterprise-teams', + @( + 'read', + 'write' + ), + 'Fine-grained', + 'Enterprise' ) ) } diff --git a/src/functions/public/Gitignore/Get-GitHubGitignore.ps1 b/src/functions/public/Gitignore/Get-GitHubGitignore.ps1 index 86d86a4af..69bfd8287 100644 --- a/src/functions/public/Gitignore/Get-GitHubGitignore.ps1 +++ b/src/functions/public/Gitignore/Get-GitHubGitignore.ps1 @@ -55,7 +55,7 @@ process { $params = @{ - Context = $Context + Context = $Context } switch ($PSCmdlet.ParameterSetName) { 'List' { diff --git a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 index cd4a99c9f..012bbc68a 100644 --- a/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 +++ b/src/functions/public/Repositories/Repositories/Get-GitHubRepositoryFork.ps1 @@ -56,7 +56,7 @@ process { $body = @{ - sort = $Sort + sort = $Sort } $body | Remove-HashtableEntry -NullOrEmptyValues