Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Oct 27, 2023
1 parent 1a1196f commit 01d320b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GitHub/public/Config/Get-GitHubConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$AccessTokenData = (Get-SecretInfo -Name "$prefix`AccessToken").Metadata | ConvertFrom-HashTable | ConvertTo-HashTable
$metadata = Join-Object -Main $RefreshTokenData -Overrides $AccessTokenData -AsHashtable

switch($Name) {
switch ($Name) {
'AccessToken' {
Get-Secret -Name "$prefix`AccessToken"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}

$body = $PSBoundParameters | ConvertFrom-HashTable | ConvertTo-HashTable -NameCasingStyle snake_case
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner','Repo' -RemoveTypes 'SwitchParameter'
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner', 'Repo' -RemoveTypes 'SwitchParameter'

$inputObject = @{
APIEndpoint = "/repos/$Owner/$Repo/codeowners/errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)

$body = $PSBoundParameters | ConvertFrom-HashTable | ConvertTo-HashTable -NameCasingStyle snake_case
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner','Repo' -RemoveTypes 'SwitchParameter'
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner', 'Repo' -RemoveTypes 'SwitchParameter'

$inputObject = @{
APIEndpoint = "/repos/$Owner/$Repo/topics"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
Transfer a repository
.DESCRIPTION
A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://docs.github.com/articles/about-repository-transfers/).
You must use a personal access token (classic) or an OAuth token for this endpoint. An installation access token or a fine-grained personal access token cannot be used because they are only granted access to a single account.
A transfer request will need to be accepted by the new owner when transferring a personal repository to another user.
The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on
the requirements to transfer personal and organization-owned repositories, see
[about repository transfers](https://docs.github.com/articles/about-repository-transfers/).
You must use a personal access token (classic) or an OAuth token for this endpoint. An installation access token or
a fine-grained personal access token cannot be used because they are only granted access to a single account.
.EXAMPLE
Move-GitHubRepository -Owner 'PSModule' -Repo 'GitHub' -NewOwner 'GitHub' -NewName 'PowerShell'
Expand Down Expand Up @@ -59,7 +63,7 @@
}

$body = $PSBoundParameters | ConvertFrom-HashTable | ConvertTo-HashTable -NameCasingStyle snake_case
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner','Repo' -RemoveTypes 'SwitchParameter'
Remove-HashtableEntry -Hashtable $body -RemoveNames 'Owner', 'Repo' -RemoveTypes 'SwitchParameter'

$inputObject = @{
APIEndpoint = "/repos/$Owner/$Repo/transfer"
Expand Down

0 comments on commit 01d320b

Please sign in to comment.