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
2 changes: 1 addition & 1 deletion src/classes/public/Context/GitHubContext.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class GitHubContext {
class GitHubContext {
# The context ID.
[string] $ID

Expand Down
6 changes: 4 additions & 2 deletions src/functions/private/Actions/Import-GitHubEventData.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function Import-GitHubEventData {
#Requires -Modules @{ ModuleName = 'CasingStyle'; RequiredVersion = '1.0.2' }

function Import-GitHubEventData {
<#
.SYNOPSIS
Import data from the event that triggered the workflow.
Expand Down Expand Up @@ -39,7 +41,7 @@
$hashtable = @{}
$gitHubEvent.PSObject.Properties | ForEach-Object {
$name = $_.Name
$name = $name | Convert-StringCasingStyle -To PascalCase
$name = $name | ConvertTo-CasingStyle -To PascalCase
$hashtable[$name] = $_.Value
}
$gitHubEvent = [pscustomobject]$hashtable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
[OutputType([securestring])]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingWriteHost', '', Justification = 'Is the CLI part of the module.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification = 'The tokens are recieved as clear text. Mitigating exposure by removing variables and performing garbage collection.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Scope = 'Function', Justification = 'Reason for suppressing')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidLongLines', '', Justification = 'Reason for suppressing')]
param(
# The context to run the command in. Used to get the details for the API call.
# Can be either a string or a GitHubContext object.
Expand Down
4 changes: 3 additions & 1 deletion src/functions/private/Config/Initialize-GitHubConfig.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function Initialize-GitHubConfig {
#Requires -Modules @{ ModuleName = 'Context'; RequiredVersion = '6.0.0' }

function Initialize-GitHubConfig {
<#
.SYNOPSIS
Initialize the GitHub module configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@
Write-Debug "[$stackPath] - End"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@
Write-Debug "[$stackPath] - End"
}
}

2 changes: 1 addition & 1 deletion src/functions/private/Teams/Get-GitHubRESTTeam.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}
switch ($PSCmdlet.ParameterSetName) {
'GetByName' {
Get-GitHubTeamByName @params -Name $Name
Get-GitHubRESTTeamByName @params -Name $Name
}
'__AllParameterSets' {
Get-GitHubTeamListByOrg @params
Expand Down

This file was deleted.

This file was deleted.

101 changes: 0 additions & 101 deletions src/functions/private/Utilities/Casing/Split-StringByCasingStyle.ps1

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
filter ConvertTo-HashTable {
#Requires -Modules @{ ModuleName = 'CasingStyle'; RequiredVersion = '1.0.2' }

filter ConvertTo-HashTable {
<#
.SYNOPSIS
Converts an object to a hashtable
Expand Down Expand Up @@ -67,7 +69,7 @@
process {
try {
foreach ($item in $InputObject.PSObject.Properties) {
$name = if ($NameCasingStyle) { ($item.Name | Convert-StringCasingStyle -To $NameCasingStyle) } else { $item.Name }
$name = if ($NameCasingStyle) { ($item.Name | ConvertTo-CasingStyle -To $NameCasingStyle) } else { $item.Name }
$hashtable[$name] = $item.Value
}
$hashtable
Expand Down
1 change: 0 additions & 1 deletion src/functions/public/Actions/Get-GitHubEventData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
Write-Debug "[$stackPath] - End"
}
}

1 change: 0 additions & 1 deletion src/functions/public/Actions/Get-GitHubRunnerData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
Write-Debug "[$stackPath] - End"
}
}

2 changes: 1 addition & 1 deletion src/functions/public/Apps/Get-GitHubAppJSONWebToken.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-GitHubAppJSONWebToken {
function Get-GitHubAppJSONWebToken {
<#
.SYNOPSIS
Generates a JSON Web Token (JWT) for a GitHub App.
Expand Down
1 change: 0 additions & 1 deletion src/functions/public/Apps/GitHub Apps/Get-GitHubApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@
Write-Debug "[$stackPath] - End"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@
Write-Debug "[$stackPath] - End"
}
}

4 changes: 1 addition & 3 deletions src/functions/public/Config/Get-GitHubConfig.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#Requires -Modules @{ ModuleName = 'Context'; RequiredVersion = '6.0.0' }

function Get-GitHubConfig {
function Get-GitHubConfig {
<#
.SYNOPSIS
Get a GitHub module configuration.
Expand Down
5 changes: 4 additions & 1 deletion src/functions/public/Git/Get-GitHubGitConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@

$configList = $configList | Sort-Object
$configList | ForEach-Object {
Write-Debug "CONFIG: $_"
$name, $value = $_ -split '=', 2
$name = ('' + $name).Trim()
$value = ('' + $value).Trim()
$config += @{
($name.Trim()) = ($value.Trim())
$name = $value
}
}
$config
Expand Down
Loading