From 23af8d407e02800aa21fd7349bdf590b168b316e Mon Sep 17 00:00:00 2001 From: ExpensiveKoala Date: Sat, 24 Jun 2023 00:28:58 -0700 Subject: [PATCH] Update update-set-implementation-lists.yml --- .github/workflows/update-set-implementation-lists.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-set-implementation-lists.yml b/.github/workflows/update-set-implementation-lists.yml index c6d2c0bdd10..52511da6734 100644 --- a/.github/workflows/update-set-implementation-lists.yml +++ b/.github/workflows/update-set-implementation-lists.yml @@ -45,7 +45,7 @@ jobs: const cardsData = fs.readFileSync(path.join('Utils', 'mtg-cards-data.txt'), 'utf8') .split('\n') .map(line => line.split('|')); - const cardIssueTemplate = fs.readFileSync(path.join('.github', 'templates', 'set-tracking-issue.md')); + const cardIssueTemplate = fs.readFileSync(path.join('.github', 'templates', 'set-tracking-issue.md'), 'utf8'); const issues = await github.paginate(github.rest.issues.listForRepo, { owner: context.repo.owner, @@ -90,7 +90,7 @@ jobs: } }); const cleanCards = cards.map(card => card[0].replace(/[-,'.!?`@#$%^&*()_=<>:";~\\|/\s]/g, '').toLowerCase()); - if(foundIssue !== undefined) { + if (foundIssue !== undefined) { foundIssue.body = mustache.render(cardIssueTemplate, { hasUnimplementedCards: unimplemented.length > 0, hasImplementedCards: implemented.length > 0,