From 22c5351b961d3b25f5b531c7d217792077b7bb84 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Fri, 7 Oct 2022 17:51:33 +0530 Subject: [PATCH] updated changelog script --- build-changelog.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/build-changelog.js b/build-changelog.js index eb6d5bb247..1c9433739d 100644 --- a/build-changelog.js +++ b/build-changelog.js @@ -7,26 +7,25 @@ let data = '' const prCount = inDone.filter((card) => { return card.node.content.url }).length -console.log(prCount, 'Prs\n') -data = prCount + ' Prs\n\n' +console.log(prCount, 'PRs found!\n') +data = prCount + ' PRs found!\n\n' for (let card of inDone) { if (card.node.content.url && card.node.content.merged) { data += ` - [${card.node.content.title}](${card.node.content.url}) (@${card.node.content.author.login})\n` - data += ` participants: ${card.node.content.participants.edges.map((p) => { return `@(${p.node.login})` })}` + data += ` participants: (${card.node.content.participants.edges.map((p) => { return ` @${p.node.login}` })})` data += '\n\n' } } - console.log('change-log.txt updated') fs.writeFileSync('./change-log.txt', data) /* - - go to https://docs.github.com/en/graphql/overview/explorer - - set the correct project id - - run the query (be careful, this only returns the first 100 elements) - - save the JSON content as done.json - - run this script - - get the result in the file done.txt + - Go to https://docs.github.com/en/graphql/overview/explorer + - Set the correct project id + - Run the below mentioned query (be careful, this only returns the first 100 elements) + - Save the JSON content as change-log.json + - Run this script i.e. build-changelog.js + - Use the result from the file change-log.txt to write changelog on Github release */ /*