See if markdown is supported
This commit is contained in:
parent
85aefe5fa4
commit
94b10dbb8f
3 changed files with 10 additions and 9 deletions
7
lib/actions-util.js
generated
7
lib/actions-util.js
generated
|
|
@ -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
|
|
@ -269,11 +269,11 @@ export async function getWorkflowErrors(): Promise<CodedError[] | undefined> {
|
|||
export function formatWorkflowErrors(errors: CodedError[]): string {
|
||||
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.`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue