1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-24 17:23:23 +03:00

chore: add tag prefix on new version on changelog diff URL [skip ci]

This commit is contained in:
louistiti 2022-02-08 11:09:09 +08:00
parent e14c249826
commit 94eebbbf20
No known key found for this signature in database
GPG Key ID: 0A1C3B043E70C77D

View File

@ -28,7 +28,7 @@ export default (version) => new Promise(async (resolve, reject) => {
const repoUrl = sh.stdout.substr(0, sh.stdout.lastIndexOf('.git'))
const previousTag = sh.stdout.substr(sh.stdout.indexOf('\n') + 1).trim()
const changelogData = fs.readFileSync(changelog, 'utf8')
const compareUrl = `${repoUrl}/compare/${previousTag}...${version}`
const compareUrl = `${repoUrl}/compare/${previousTag}...v${version}`
let tmpData = fs.readFileSync(`scripts/tmp/${tmpChangelog}`, 'utf8')
log.success(`Remote origin URL gotten: ${repoUrl}.git`)