Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/functions/public/Actions/Stop-GitHubWorkflowRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@
Write-Output $_.Response
}
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-GitHubAppInstallationAccessToken {
filter New-GitHubAppInstallationAccessToken {
<#
.SYNOPSIS
Create an installation access token for an app
Expand Down Expand Up @@ -28,19 +28,34 @@
to access this endpoint.

.EXAMPLE
Get-GitHubAppInstallationAccessToken -InstallationID 12345678
New-GitHubAppInstallationAccessToken -InstallationID 12345678

Gets an installation access token for the installation with the ID `12345678`.
Creates an installation access token for the installation with the ID `12345678`.

.EXAMPLE
Connect-GitHub -ClientID $ClientID -PrivateKey $PrivateKey -Verbose
Get-GitHubAppInstallation | New-GitHubAppInstallationAccessToken

Gets the GitHub App installations and creates an installation access token for each installation.

.NOTES
[Create an installation access token for an app](https://docs.github.com/rest/apps/apps#create-an-installation-access-token-for-an-app)
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSUseShouldProcessForStateChangingFunctions', '',
Justification = 'No state is changed.'
)]
[CmdletBinding()]
param (
# The unique identifier of the installation.
# Example: '12345678'
[Parameter(Mandatory)]
[string] $InstallationID
[Parameter(
Mandatory,
ValueFromPipeline,
ValueFromPipelineByPropertyName
)]
[Alias('ID')]
[int] $InstallationID
)

$inputObject = @{
Expand Down