updated changelog script

pull/3014/head
Aniket-Engg 2 years ago committed by Aniket
parent 09404126c0
commit 22c5351b96
  1. 19
      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
*/
/*

Loading…
Cancel
Save