1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

chore: use right release tags to compare

This commit is contained in:
Louistiti 2019-04-24 07:19:01 +08:00
parent a94267b704
commit 815f8c9ba6
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# [1.0.0-beta.2](https://github.com/leon-ai/leon/compare/1.0.0-beta.1...v1.0.0-beta.2) (2019-04-24) # [1.0.0-beta.2](https://github.com/leon-ai/leon/compare/1.0.0-beta.1...1.0.0-beta.2) (2019-04-24)
### Features ### Features
- can send custom HTTP headers - can send custom HTTP headers
([2685cdab](https://github.com/leon-ai/leon/commit/2685cdab07cc1a9ea418eab812e5163d2dd0da90)) ([2685cdab](https://github.com/leon-ai/leon/commit/2685cdab07cc1a9ea418eab812e5163d2dd0da90))
@ -46,7 +46,7 @@
# [1.0.0-beta.1](https://github.com/leon-ai/leon/compare/1.0.0-beta.0...v1.0.0-beta.1) (2019-02-24) # [1.0.0-beta.1](https://github.com/leon-ai/leon/compare/1.0.0-beta.0...1.0.0-beta.1) (2019-02-24)
### Features ### Features
- add Docker support - add Docker support
([209760db](https://github.com/leon-ai/leon/commit/209760dba747001300692fb6a6af97543de584d6)) ([209760db](https://github.com/leon-ai/leon/commit/209760dba747001300692fb6a6af97543de584d6))
@ -74,6 +74,6 @@
([08a68e37](https://github.com/leon-ai/leon/commit/08a68e376b6a9367425947380564120943376500)) ([08a68e37](https://github.com/leon-ai/leon/commit/08a68e376b6a9367425947380564120943376500))
# [1.0.0-beta.0](https://github.com/leon-ai/leon/compare/https://github.com/leon-ai/leon.git...v1.0.0-beta.0) (2019-02-10) # [1.0.0-beta.0](https://github.com/leon-ai/leon/compare/https://github.com/leon-ai/leon.git...1.0.0-beta.0) (2019-02-10)
Initial release. Initial release.

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 repoUrl = sh.stdout.substr(0, sh.stdout.lastIndexOf('.git'))
const previousTag = sh.stdout.substr(sh.stdout.indexOf('\n') + 1).trim() const previousTag = sh.stdout.substr(sh.stdout.indexOf('\n') + 1).trim()
const changelogData = fs.readFileSync(changelog, 'utf8') const changelogData = fs.readFileSync(changelog, 'utf8')
const compareUrl = `${repoUrl}/compare/${previousTag}...v${version}` const compareUrl = `${repoUrl}/compare/${previousTag}...${version}`
let tmpData = fs.readFileSync(`scripts/tmp/${tmpChangelog}`, 'utf8') let tmpData = fs.readFileSync(`scripts/tmp/${tmpChangelog}`, 'utf8')
log.success(`Remote origin URL gotten: ${repoUrl}.git`) log.success(`Remote origin URL gotten: ${repoUrl}.git`)