See if markdown is supported

This commit is contained in:
Simon Engledew 2020-11-25 12:46:37 +00:00
parent 85aefe5fa4
commit 94b10dbb8f
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 10 additions and 9 deletions

7
lib/actions-util.js generated
View file

@ -224,9 +224,10 @@ async function getWorkflowErrors() {
exports.getWorkflowErrors = getWorkflowErrors;
function formatWorkflowErrors(errors) {
const issuesWere = errors.length === 1 ? "issue was" : "issues were";
return `${errors.length} ${issuesWere} detected with this workflow: ${errors
.map((e) => e.message)
.join(", ")}
const errorsList = `* ${errors.map((e) => e.message).join("\n* ")}`;
return `${errors.length} ${issuesWere} detected with this workflow:
${errorsList}
Please visit https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning for the latest guidance on configuring Code Scanning.`;
}

File diff suppressed because one or more lines are too long