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 */ /*