Skip to content

Commit

Permalink
chore: add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 3, 2020
1 parent 6a288b2 commit 96d694b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ koishi run

完整的文档在 [这里](https://koishijs.github.io/guide/getting-started.html)

## 更新日志

参见 [releases](https://github.com/koishijs/koishi/releases)

## 贡献

如果想对 Koishi 做出贡献,可以参考下面的指南:
Expand Down
4 changes: 2 additions & 2 deletions build/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const headerMap = {

const updates = { fix: '', feat: '' }
const lastTag = tags[tags.length - 1]
const commits = spawnSync(`git log ${lastTag}..HEAD --format="%H%s"`).split(/\r?\n/).reverse()
const commits = spawnSync(`git log ${lastTag}..HEAD --format=%H%s`).split(/\r?\n/).reverse()
for (const commit of commits) {
const hash = commit.slice(0, 40)
const details = /^(fix|feat)(?:\((\S+)\))?: (.+)$/.exec(commit.slice(40))
Expand All @@ -66,7 +66,7 @@ const headerMap = {
let body = ''
for (const type in headerMap) {
if (!updates[type]) continue
body += `# ${headerMap[type]}\n\n${updates[type]}\n`
body += `## ${headerMap[type]}\n\n${updates[type]}\n`
}

const github = new Octokit({
Expand Down
4 changes: 4 additions & 0 deletions packages/koishi-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ koishi run

完整的文档在 [这里](https://koishijs.github.io/guide/getting-started.html)

## 更新日志

参见 [releases](https://github.com/koishijs/koishi/releases)

## 贡献

如果想对 Koishi 做出贡献,可以参考下面的指南:
Expand Down

0 comments on commit 96d694b

Please sign in to comment.