Prettier - Refactor summary table rendering for improved readability
This commit is contained in:
+3
-4
@@ -479,10 +479,9 @@ export async function addChangeVulnerabilitiesToSummary(
|
|||||||
if (showPatchedVersions) {
|
if (showPatchedVersions) {
|
||||||
headerRow.push({data: 'Patched Version', header: true})
|
headerRow.push({data: 'Patched Version', header: true})
|
||||||
}
|
}
|
||||||
core.summary.addHeading(`<em>${manifest}</em>`, 4).addTable([
|
core.summary
|
||||||
headerRow,
|
.addHeading(`<em>${manifest}</em>`, 4)
|
||||||
...rows
|
.addTable([headerRow, ...rows])
|
||||||
])
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (severity !== 'low') {
|
if (severity !== 'low') {
|
||||||
|
|||||||
Reference in New Issue
Block a user