Show all non-empty snapshot warnings

This commit is contained in:
Justin Holguín
2023-08-23 18:45:35 +00:00
committed by GitHub
parent c17dea4c51
commit ee86529290
3 changed files with 1 additions and 18 deletions
-9
View File
@@ -232,15 +232,6 @@ export function addScannedDependencies(changes: Changes): void {
}
export function addSnapshotWarnings(warnings: string): void {
// For now, we want to ignore warnings that just complain
// about missing snapshots on the head SHA. This is a product
// decision to avoid presenting warnings to users who simply
// don't use snapshots.
const ignore_regex = new RegExp(/No.*snapshot.*found.*head.*/, 'i')
if (ignore_regex.test(warnings)) {
return
}
core.summary.addHeading('Snapshot Warnings', 2)
core.summary.addQuote(`${icons.warning}: ${warnings}`)
core.summary.addRaw(