@@ -104,8 +104,8 @@ Begin
104
104
}
105
105
}
106
106
107
- Write-Verbose ' defaulting to main branch'
108
- return ' main '
107
+ Write-Verbose ' defaulting to master branch'
108
+ return ' master '
109
109
}
110
110
111
111
function ReadRemote
@@ -155,16 +155,28 @@ Begin
155
155
156
156
if (-not $a.Matches.Success )
157
157
{
158
- # should execute on first $line
159
- # repo is non-conformant so fallback entire report and exit quickly
160
- Write-Verbose " fallback: $line "
161
- ReportRaw
162
- break
158
+ # probably from dependabot
159
+ $a = $parts [3 ] | Select-String - Pattern " Merge pull request (#[0-9]+) from (.+)"
160
+ if ($a.Matches.Success )
161
+ {
162
+ $groups = $a.Matches.Groups
163
+ ReportPrettyLine $parts [1 ] $parts [2 ] $groups [1 ] ' -' $groups [2 ]
164
+ }
165
+ else
166
+ {
167
+ # should execute on first $line
168
+ # repo is non-conformant so fallback entire report and exit quickly
169
+ Write-Verbose " fallback: $line "
170
+ ReportRaw
171
+ break
172
+ }
163
173
}
174
+ else
175
+ {
176
+ $groups = $a.Matches.Groups
164
177
165
- $groups = $a.Matches.Groups
166
-
167
- ReportPrettyLine $parts [1 ] $parts [2 ] $groups [1 ] $groups [2 ] $groups [3 ]
178
+ ReportPrettyLine $parts [1 ] $parts [2 ] $groups [1 ] $groups [2 ] $groups [3 ]
179
+ }
168
180
}
169
181
}
170
182
@@ -204,24 +216,26 @@ Begin
204
216
}
205
217
206
218
$status = $response.fields.status.name
207
- $pstatus = $status.PadRight (11 )
208
219
209
220
if ($response.fields.issueType.name -eq " Story" )
210
221
{
211
222
Write-Host " $author $ago $pkey " - NoNewline
212
223
224
+ $storyStatus = $status.PadRight (11 )
225
+
213
226
switch ($status )
214
227
{
215
- " Verified" { Write-Host $pstatus - NoNewline - ForegroundColor Green }
216
- " Passed" { Write-Host $pstatus - NoNewline - ForegroundColor Yellow }
217
- default { Write-Host $pstatus - NoNewline - ForegroundColor Cyan }
228
+ " Verified" { Write-Host $storyStatus - NoNewline - ForegroundColor Green }
229
+ " Passed" { Write-Host $storyStatus - NoNewline - ForegroundColor Yellow }
230
+ default { Write-Host $storyStatus - NoNewline - ForegroundColor Cyan }
218
231
}
219
232
220
233
Write-Host " PR $pr $desc "
221
234
}
222
235
else
223
236
{
224
- Write-Host " $author $ago $pkey $pstatus PR $pr $desc (task)" - ForegroundColor DarkGray
237
+ $taskStatus = " Task:$status " .PadRight(11 )
238
+ Write-Host " $author $ago $pkey $taskStatus PR $pr $desc " - ForegroundColor DarkGray
225
239
}
226
240
}
227
241
}
0 commit comments