mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-13 19:34:54 +00:00
The new lines weren't working properly as we'd filter them out, whoops (#1951)
This commit is contained in:
@@ -233,7 +233,7 @@ jobs:
|
||||
...unmatchedRows
|
||||
].join('\n')
|
||||
: '',
|
||||
].filter(Boolean).join('\n');
|
||||
].join('\n');
|
||||
|
||||
if (existingTrackerIssues.length > 0) {
|
||||
const [primary, ...duplicates] = existingTrackerIssues;
|
||||
|
||||
@@ -214,7 +214,7 @@ jobs:
|
||||
exitCode !== '0'
|
||||
? '> **Note:** The validator returned a non-zero exit code. Please review the findings above before merge.'
|
||||
: '',
|
||||
].filter(Boolean).join('\n');
|
||||
].join('\n');
|
||||
|
||||
// Find existing comment with our marker
|
||||
const { data: comments } = await github.rest.issues.listComments({
|
||||
|
||||
@@ -553,7 +553,7 @@ function buildMergedIntakeComment(baseResult, qualityResult, runId, owner, repo)
|
||||
? ["", "### Warnings", "", ...baseResult.warnings.map((warning) => `- ${warning}`)].join("\n")
|
||||
: "",
|
||||
runLink ? `\n${runLink}` : "",
|
||||
].filter(Boolean).join("\n");
|
||||
].join("\n");
|
||||
}
|
||||
|
||||
export function applyQualityGateResult(baseEvaluation, qualityGateResult, runId, owner, repo) {
|
||||
@@ -644,7 +644,7 @@ export async function evaluateExternalPluginIssue({ issue, token, runId, owner,
|
||||
? ["", "### Warnings", "", ...dedupedWarnings.map((warning) => `- ${warning}`)].join("\n")
|
||||
: "",
|
||||
runLink ? `\n${runLink}` : "",
|
||||
].filter(Boolean).join("\n")
|
||||
].join("\n")
|
||||
: [
|
||||
marker,
|
||||
"## ❌ External plugin intake failed",
|
||||
@@ -659,7 +659,7 @@ export async function evaluateExternalPluginIssue({ issue, token, runId, owner,
|
||||
? ["", "### Warnings", "", ...dedupedWarnings.map((warning) => `- ${warning}`)].join("\n")
|
||||
: "",
|
||||
runLink ? `\n${runLink}` : "",
|
||||
].filter(Boolean).join("\n");
|
||||
].join("\n");
|
||||
|
||||
return {
|
||||
valid,
|
||||
|
||||
Reference in New Issue
Block a user