|
|
@ -7,26 +7,25 @@ let data = '' |
|
|
|
const prCount = inDone.filter((card) => { |
|
|
|
const prCount = inDone.filter((card) => { |
|
|
|
return card.node.content.url |
|
|
|
return card.node.content.url |
|
|
|
}).length |
|
|
|
}).length |
|
|
|
console.log(prCount, 'Prs\n') |
|
|
|
console.log(prCount, 'PRs found!\n') |
|
|
|
data = prCount + ' Prs\n\n' |
|
|
|
data = prCount + ' PRs found!\n\n' |
|
|
|
for (let card of inDone) { |
|
|
|
for (let card of inDone) { |
|
|
|
if (card.node.content.url && card.node.content.merged) { |
|
|
|
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 += ` - [${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' |
|
|
|
data += '\n\n' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log('change-log.txt updated') |
|
|
|
console.log('change-log.txt updated') |
|
|
|
fs.writeFileSync('./change-log.txt', data) |
|
|
|
fs.writeFileSync('./change-log.txt', data) |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
- go to https://docs.github.com/en/graphql/overview/explorer
|
|
|
|
- Go to https://docs.github.com/en/graphql/overview/explorer
|
|
|
|
- set the correct project id |
|
|
|
- Set the correct project id |
|
|
|
- run the query (be careful, this only returns the first 100 elements) |
|
|
|
- Run the below mentioned query (be careful, this only returns the first 100 elements) |
|
|
|
- save the JSON content as done.json |
|
|
|
- Save the JSON content as change-log.json |
|
|
|
- run this script |
|
|
|
- Run this script i.e. build-changelog.js |
|
|
|
- get the result in the file done.txt |
|
|
|
- Use the result from the file change-log.txt to write changelog on Github release |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
/* |
|
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|