Update update-set-implementation-lists.yml

This commit is contained in:
ExpensiveKoala 2023-06-24 00:28:58 -07:00 committed by GitHub
parent ae416c8c8b
commit 23af8d407e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,