From cfc07e90d4ac640ca3bbd41bf1d16cbeef552559 Mon Sep 17 00:00:00 2001 From: ExpensiveKoala Date: Sun, 29 Sep 2024 13:39:22 -0700 Subject: [PATCH] Update update-set-implementation-lists.yml --- .github/workflows/update-set-implementation-lists.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-set-implementation-lists.yml b/.github/workflows/update-set-implementation-lists.yml index 05c29913f11..13251a4f67b 100644 --- a/.github/workflows/update-set-implementation-lists.yml +++ b/.github/workflows/update-set-implementation-lists.yml @@ -136,7 +136,15 @@ jobs: if (body.length > 65536) { console.log(`Issue body for ${set[0]} (${set[1]}) too long! Length: ${body.length}`); - console.log(`${body}`); + const trimmedBody = mustache.render(cardIssueTemplate, { + hasUnimplementedCards: unimplemented.length > 0, + hasImplementedCards: implemented.length > 0, + unimplementedCards: unimplemented, + implementedCards: implemented, + unimplementedScryfallLink: `https://scryfall.com/search?q=!"${unimplemented.map(e => e.cleanName).join('"OR!"')}"+e:${set[1]}` + }).replaceAll("--", "-").replaceAll("https://", "").replaceAll(`+e${set[1]}`, ""); + console.log(`Trimmed body length: ${trimmedBody.length}`); + console.log(`${trimmedBody}`); continue; }