Skip to content

Commit

Permalink
Minor tweaks to snapshot warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
juxtin committed Sep 7, 2023
1 parent bed9726 commit 35a52fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/summary.ts
Expand Up @@ -240,11 +240,11 @@ function snapshotWarningRecommendation(
)
const retries_disabled = !config.retry_on_snapshot_warnings
if (no_pr_snaps && retries_disabled) {
return 'Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings.'
return 'Ensure that dependencies are being submitted on PR branches and consider enabling <em>retry-on-snapshot-warnings</em>.'
} else if (no_pr_snaps) {
return 'Ensure that dependencies are being submitted on PR branches. Re-running this action after a short time may resolve the issue.'
} else if (retries_disabled) {
return 'Consider enabling retry-on-snapshot-warnings.'
return 'Consider enabling <em>retry-on-snapshot-warnings</em>.'
}
return 'Re-running this action after a short time may resolve the issue.'
}
Expand All @@ -258,7 +258,7 @@ export function addSnapshotWarnings(
const recommendation = snapshotWarningRecommendation(config, warnings)
const docsLink =
'See <a href="https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#best-practices-for-using-the-dependency-review-api-and-the-dependency-submission-api-together">the documentation</a> for more information and troubleshooting advice.'
core.summary.addRaw(`${recommendation} ${docsLink}}`)
core.summary.addRaw(`${recommendation} ${docsLink}`)
}

function countLicenseIssues(
Expand Down

0 comments on commit 35a52fd

Please sign in to comment.