mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-25 09:44:22 +03:00
chore: add tag prefix on new version on changelog diff URL [skip ci]
This commit is contained in:
parent
e14c249826
commit
94eebbbf20
@ -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`)
|
||||
|
Loading…
Reference in New Issue
Block a user