mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore: add changelog to release body
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const {execSync} = require('child_process')
|
||||
const path = require('path')
|
||||
const conventionalChangelog = path.join('node_modules', '.bin', 'conventional-changelog')
|
||||
|
||||
// sometimes release-count 1 is empty
|
||||
let releaseChangelog =
|
||||
execSync(`${conventionalChangelog} --preset angular --release-count 1`).toString() ||
|
||||
execSync(`${conventionalChangelog} --preset angular --release-count 2`).toString()
|
||||
|
||||
// format
|
||||
releaseChangelog = releaseChangelog.trim().replace(/\n\n+/g, '\n\n')
|
||||
|
||||
const releaseBody = `Progressive web app mirrors:
|
||||
- https://plebchan.eth.limo
|
||||
- https://plebchan.eth.link
|
||||
- https://cloudflare-ipfs.com/ipns/plebchan.eth (insecure, no subdomain isolation)
|
||||
|
||||
CLI client:
|
||||
- https://github.com/plebbit/plebbit-cli/releases/latest
|
||||
|
||||
${releaseChangelog}`
|
||||
|
||||
console.log(releaseBody)
|
||||
Reference in New Issue
Block a user