File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -462,11 +462,12 @@ async function packagesHaveRiskyIssues(
462
462
if ( type ) {
463
463
// Based data from { pageProps: { alertTypes } } of:
464
464
// https://socket.dev/_next/data/94666139314b6437ee4491a0864e72b264547585/en-US.json
465
- const issueTypeTranslation = translations . issues [ type ]
465
+ const info = translations . issues [ type ]
466
+ const title = info ?. title ?? type
467
+ const maybeBlocking = failure . block ? '' : ' (non-blocking)'
468
+ const maybeDesc = info ?. description ? ` - ${ info . description } ` : ''
466
469
// TODO: emoji seems to mis-align terminals sometimes
467
- lines . add (
468
- ` ${ issueTypeTranslation ?. title ?? type } ${ failure . block ? '' : ' (non-blocking)' } - ${ issueTypeTranslation ?. description ?? '' } \n`
469
- )
470
+ lines . add ( ` ${ title } ${ maybeBlocking } ${ maybeDesc } \n` )
470
471
}
471
472
}
472
473
for ( const line of lines ) {
You can’t perform that action at this time.
0 commit comments