File tree Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Expand file tree Collapse file tree 5 files changed +26
-28
lines changed Original file line number Diff line number Diff line change 11@ {
22 Parameters = @ (
33 @ {
4- Name = ' Repository '
4+ Name = ' repository '
55 Type = ' string'
66 IfNullOrEmpty = {
77 param ($ErrorTarget )
3131 }
3232
3333 @ {
34- Name = ' Message_Body '
34+ Name = ' message_body '
3535 Type = ' String'
3636 IfNullOrEmpty = {
3737 param ($ErrorTarget )
7575 }
7676
7777 @ {
78- Name = ' Message_Path '
78+ Name = ' message_path '
7979 Type = ' String'
8080 IfNullOrEmpty = {
8181 param ($ErrorTarget )
Original file line number Diff line number Diff line change 11@ {
22 Parameters = @ (
33 @ {
4- Name = ' Relative_Folder_Path '
4+ Name = ' relative_folder_path '
55 Type = ' String[]'
66 IfNullOrEmpty = {
77 param ($ErrorTarget )
3333 }
3434
3535 @ {
36- Name = ' Exclude_Folder_Segment '
36+ Name = ' exclude_folder_segment '
3737 Type = ' String[]'
3838 IfNullOrEmpty = {
3939 param ($ErrorTarget )
5656 }
5757
5858 @ {
59- Name = ' Days_Until_Stale '
59+ Name = ' days_until_stale '
6060 Type = ' Int'
6161 IfNullOrEmpty = {
6262 param ($ErrorTarget )
9191 }
9292
9393 @ {
94- Name = ' Stale_Since_Date '
94+ Name = ' stale_since_date '
9595 Type = ' DateTime'
9696 IfNullOrEmpty = {
9797 param ($ErrorTarget )
125125 }
126126
127127 @ {
128- Name = ' Upload_Artifact '
128+ Name = ' upload_artifact '
129129 Type = ' Bool'
130130 IfNullOrEmpty = {
131131 param ($ErrorTarget )
166166 }
167167
168168 @ {
169- Name = ' Export_As_Csv '
169+ Name = ' export_as_csv '
170170 Type = ' Bool'
171171 IfNullOrEmpty = {
172172 param ($ErrorTarget )
206206 }
207207
208208 @ {
209- Name = ' Export_Path '
209+ Name = ' export_path '
210210 Type = ' string'
211211 IfNullOrEmpty = {
212212 param ($ErrorTarget )
Original file line number Diff line number Diff line change 11@ {
22 Parameters = @ (
33 @ {
4- Name = ' Repository '
4+ Name = ' repository '
55 Type = ' String'
66 IfNullOrEmpty = {
77 param ($ErrorTarget )
3131 }
3232
3333 @ {
34- Name = ' Number '
34+ Name = ' number '
3535 Type = ' Int'
3636 IfNullOrEmpty = {
3737 param ($ErrorTarget )
6161 }
6262
6363 @ {
64- Name = ' Include_Path_Pattern '
64+ Name = ' include_path_pattern '
6565 Type = ' String[]'
6666 IfNullOrEmpty = {
6767 # It's okay if this parameter is not specified.
8484 }
8585 }
8686 @ {
87- Name = ' Exclude_Path_Pattern '
87+ Name = ' exclude_path_pattern '
8888 Type = ' String[]'
8989 IfNullOrEmpty = {
9090 # It's okay if this parameter is not specified.
Original file line number Diff line number Diff line change 11@ {
22 Parameters = @ (
33 @ {
4- Name = ' Repository '
4+ Name = ' repository '
55 Type = ' string'
66 IfNullOrEmpty = {
77 param ($ErrorTarget )
3030 }
3131 }
3232 @ {
33- Name = ' AuthorizedAccounts '
33+ Name = ' authorized_accounts '
3434 Type = ' String[]'
35- IfNullOrEmpty = {
36- param ($ErrorTarget )
37-
38- # This parameter is optional, so don't error.
39- }
4035 Process = {
4136 param ($Parameters , $Value , $ErrorTarget )
4237
43- [string []]$SpecifiedAccounts = $Value -split ' ,'
38+ [string []]$SpecifiedAccounts = $Value -split ' ,' | Where-Object {
39+ -not [string ]::IsNullOrEmpty($_ )
40+ }
41+
4442 if ($SpecifiedAccounts.Count -gt 0 ) {
4543 $Parameters.AuthorizedAccounts = $SpecifiedAccounts
4644 Write-HostParameter - Name AuthorizedAccounts - Value $Parameters.AuthorizedAccounts
5048 }
5149
5250 @ {
53- Name = ' Permissions '
51+ Name = ' permissions '
5452 Type = ' String[]'
5553 IfNullOrEmpty = {
5654 param ($ErrorTarget )
118116 }
119117
120118 @ {
121- Name = ' Target '
119+ Name = ' target '
122120 Type = ' String[]'
123121 IfNullOrEmpty = {
124122 param ($ErrorTarget )
191189 }
192190
193191 @ {
194- Name = ' User '
192+ Name = ' user '
195193 Type = ' String'
196194 IfNullOrEmpty = {
197195 param ($ErrorTarget )
222220 }
223221 }
224222 )
225- }
223+ }
Original file line number Diff line number Diff line change 11@ {
22 Parameters = @ (
33 @ {
4- Name = ' Body '
4+ Name = ' body '
55 Type = ' string'
66 IfNullOrEmpty = {
77 param ($ErrorTarget )
3030 }
3131
3232 @ {
33- Name = ' Reference_Url '
33+ Name = ' reference_url '
3434 Type = ' string'
3535 IfNullOrEmpty = {
3636 param ($ErrorTarget )
You can’t perform that action at this time.
0 commit comments