diff --git a/.github/actions/commenting/expectations/v1/Parameters.psd1 b/.github/actions/commenting/expectations/v1/Parameters.psd1 index c9767d9daf06..1e808a3c84a2 100644 --- a/.github/actions/commenting/expectations/v1/Parameters.psd1 +++ b/.github/actions/commenting/expectations/v1/Parameters.psd1 @@ -1,7 +1,7 @@ @{ Parameters = @( @{ - Name = 'Repository' + Name = 'repository' Type = 'string' IfNullOrEmpty = { param($ErrorTarget) @@ -31,7 +31,7 @@ } @{ - Name = 'Message_Body' + Name = 'message_body' Type = 'String' IfNullOrEmpty = { param($ErrorTarget) @@ -75,7 +75,7 @@ } @{ - Name = 'Message_Path' + Name = 'message_path' Type = 'String' IfNullOrEmpty = { param($ErrorTarget) diff --git a/.github/actions/reporting/stale-content/v1/Parameters.psd1 b/.github/actions/reporting/stale-content/v1/Parameters.psd1 index 56a419e1b539..de2302d0706c 100644 --- a/.github/actions/reporting/stale-content/v1/Parameters.psd1 +++ b/.github/actions/reporting/stale-content/v1/Parameters.psd1 @@ -1,7 +1,7 @@ @{ Parameters = @( @{ - Name = 'Relative_Folder_Path' + Name = 'relative_folder_path' Type = 'String[]' IfNullOrEmpty = { param($ErrorTarget) @@ -33,7 +33,7 @@ } @{ - Name = 'Exclude_Folder_Segment' + Name = 'exclude_folder_segment' Type = 'String[]' IfNullOrEmpty = { param($ErrorTarget) @@ -56,7 +56,7 @@ } @{ - Name = 'Days_Until_Stale' + Name = 'days_until_stale' Type = 'Int' IfNullOrEmpty = { param($ErrorTarget) @@ -91,7 +91,7 @@ } @{ - Name = 'Stale_Since_Date' + Name = 'stale_since_date' Type = 'DateTime' IfNullOrEmpty = { param($ErrorTarget) @@ -125,7 +125,7 @@ } @{ - Name = 'Upload_Artifact' + Name = 'upload_artifact' Type = 'Bool' IfNullOrEmpty = { param($ErrorTarget) @@ -166,7 +166,7 @@ } @{ - Name = 'Export_As_Csv' + Name = 'export_as_csv' Type = 'Bool' IfNullOrEmpty = { param($ErrorTarget) @@ -206,7 +206,7 @@ } @{ - Name = 'Export_Path' + Name = 'export_path' Type = 'string' IfNullOrEmpty = { param($ErrorTarget) diff --git a/.github/actions/reporting/versioned-content/v1/Parameters.psd1 b/.github/actions/reporting/versioned-content/v1/Parameters.psd1 index c27427eb3720..e2789ccd31a7 100644 --- a/.github/actions/reporting/versioned-content/v1/Parameters.psd1 +++ b/.github/actions/reporting/versioned-content/v1/Parameters.psd1 @@ -1,7 +1,7 @@ @{ Parameters = @( @{ - Name = 'Repository' + Name = 'repository' Type = 'String' IfNullOrEmpty = { param($ErrorTarget) @@ -31,7 +31,7 @@ } @{ - Name = 'Number' + Name = 'number' Type = 'Int' IfNullOrEmpty = { param($ErrorTarget) @@ -61,7 +61,7 @@ } @{ - Name = 'Include_Path_Pattern' + Name = 'include_path_pattern' Type = 'String[]' IfNullOrEmpty = { # It's okay if this parameter is not specified. @@ -84,7 +84,7 @@ } } @{ - Name = 'Exclude_Path_Pattern' + Name = 'exclude_path_pattern' Type = 'String[]' IfNullOrEmpty = { # It's okay if this parameter is not specified. diff --git a/.github/actions/verification/authorization/v1/Parameters.psd1 b/.github/actions/verification/authorization/v1/Parameters.psd1 index 306e47874109..d849a1a8b74a 100644 --- a/.github/actions/verification/authorization/v1/Parameters.psd1 +++ b/.github/actions/verification/authorization/v1/Parameters.psd1 @@ -1,7 +1,7 @@ @{ Parameters = @( @{ - Name = 'Repository' + Name = 'repository' Type = 'string' IfNullOrEmpty = { param($ErrorTarget) @@ -30,17 +30,15 @@ } } @{ - Name = 'AuthorizedAccounts' + Name = 'authorized_accounts' Type = 'String[]' - IfNullOrEmpty = { - param($ErrorTarget) - - # This parameter is optional, so don't error. - } Process = { param($Parameters, $Value, $ErrorTarget) - [string[]]$SpecifiedAccounts = $Value -split ',' + [string[]]$SpecifiedAccounts = $Value -split ',' | Where-Object { + -not [string]::IsNullOrEmpty($_) + } + if ($SpecifiedAccounts.Count -gt 0) { $Parameters.AuthorizedAccounts = $SpecifiedAccounts Write-HostParameter -Name AuthorizedAccounts -Value $Parameters.AuthorizedAccounts @@ -50,7 +48,7 @@ } @{ - Name = 'Permissions' + Name = 'permissions' Type = 'String[]' IfNullOrEmpty = { param($ErrorTarget) @@ -118,7 +116,7 @@ } @{ - Name = 'Target' + Name = 'target' Type = 'String[]' IfNullOrEmpty = { param($ErrorTarget) @@ -191,7 +189,7 @@ } @{ - Name = 'User' + Name = 'user' Type = 'String' IfNullOrEmpty = { param($ErrorTarget) @@ -222,4 +220,4 @@ } } ) -} \ No newline at end of file +} diff --git a/.github/actions/verification/checklist/v1/Parameters.psd1 b/.github/actions/verification/checklist/v1/Parameters.psd1 index 237bf4803b0f..8e567b2bf266 100644 --- a/.github/actions/verification/checklist/v1/Parameters.psd1 +++ b/.github/actions/verification/checklist/v1/Parameters.psd1 @@ -1,7 +1,7 @@ @{ Parameters = @( @{ - Name = 'Body' + Name = 'body' Type = 'string' IfNullOrEmpty = { param($ErrorTarget) @@ -30,7 +30,7 @@ } @{ - Name = 'Reference_Url' + Name = 'reference_url' Type = 'string' IfNullOrEmpty = { param($ErrorTarget)