Skip to content

Commit

Permalink
工作流: 🛤️ 整合 CookPete/auto-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
iTonyYo committed Jul 3, 2019
1 parent 6e207a5 commit f2cbd45
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 4 deletions.
27 changes: 27 additions & 0 deletions changelog-template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# [`setgit-cli`][setgit-cli] 更新日志

{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#if merges}}
### 混合

{{#each merges}}
- {{#if href}}[[`#{{id}}`]({{href}})]{{/if}} {{{message}}}
{{/each}}
{{/if}}

{{#commit-list commits heading='#### 提交' message='工程: |新功能: |功能: |修复: |补丁: |文档: |注释: |文案: |证书: |安全: |性能: |皮肤: |测试: |架构: |可访问性: |体验: |数据库: |监控: |工作流: |依赖: |格式: |检查: |发版: |部署: |持续集成: |分支: |贡献者: |移除: |配置: '}}
- {{#if href}}[[`{{shorthash}}`]({{href}})]{{/if}} {{{subject}}}
{{/commit-list}}
{{/each}}

[setgit-cli]: https://github.com/iTonyYo/setgit-cli
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"license": "npx babel-node ./scripts/license",
"reprepare": "npx babel-node ./scripts/re-prepare",
"lint": "npx eslint --cache .",
"test": "cross-env NODE_ENV=test npx babel-node ./scripts/test"
"test": "cross-env NODE_ENV=test npx babel-node ./scripts/test",
"changelog": "npx auto-changelog -p"
},
"engines": {
"node": ">=10.13.0"
Expand Down Expand Up @@ -105,13 +106,23 @@
"checkLeaks": true,
"retries": 2
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "changelog-template.hbs",
"unreleased": true,
"commitLimit": false,
"includeBranch": [
"master"
]
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/register": "^7.4.4",
"auto-changelog": "^1.13.0",
"babel-eslint": "^10.0.2",
"babel-plugin-add-module-exports": "^1.0.2",
"cross-env": "^5.2.0",
Expand Down
34 changes: 31 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
"@babel/helper-regex" "^7.4.4"
regexpu-core "^4.5.4"

"@babel/polyfill@^7.0.0":
"@babel/polyfill@^7.0.0", "@babel/polyfill@^7.4.3":
version "7.4.4"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.4.4.tgz#78801cf3dbe657844eeabf31c1cae3828051e893"
integrity sha512-WlthFLfhQQhh+A2Gn5NSFl0Huxz36x86Jn+E9OW7ibK8edKPq+KLy4apM1yDpQ8kJOVi1OVjpP4vSDLdrI04dg==
Expand Down Expand Up @@ -947,6 +947,19 @@ atob@^2.1.1:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

auto-changelog@^1.13.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/auto-changelog/-/auto-changelog-1.13.0.tgz#d082444d1ae9411e4ab83b6e82ed0fcb95f7d471"
integrity sha512-djreNOUH6i09Lkm/A3oDApJjSrphUb8dxnyCan8CVEN1uHrD02NlraZic9VdPu37ZYcf1lqYNLjuwT5CFZxtPw==
dependencies:
"@babel/polyfill" "^7.4.3"
commander "^2.20.0"
handlebars "^4.0.12"
lodash.uniqby "^4.7.0"
node-fetch "^2.3.0"
parse-github-url "^1.0.2"
semver "^6.0.0"

aws-sign2@~0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
Expand Down Expand Up @@ -1333,7 +1346,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
dependencies:
delayed-stream "~1.0.0"

commander@^2.8.1, commander@~2.20.0:
commander@^2.20.0, commander@^2.8.1, commander@~2.20.0:
version "2.20.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
Expand Down Expand Up @@ -2319,7 +2332,7 @@ growl@1.10.5:
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==

handlebars@^4.1.2:
handlebars@^4.0.12, handlebars@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67"
integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==
Expand Down Expand Up @@ -3113,6 +3126,11 @@ lodash.flattendeep@^4.4.0:
resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2"
integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=

lodash.uniqby@^4.7.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302"
integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=

lodash@^4.17.11:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
Expand Down Expand Up @@ -3519,6 +3537,11 @@ node-environment-flags@^1.0.5:
object.getownpropertydescriptors "^2.0.3"
semver "^5.7.0"

node-fetch@^2.3.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==

node-gyp@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-4.0.0.tgz#972654af4e5dd0cd2a19081b4b46fe0442ba6f45"
Expand Down Expand Up @@ -3953,6 +3976,11 @@ parent-module@^1.0.0:
dependencies:
callsites "^3.0.0"

parse-github-url@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395"
integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==

parse-json@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0"
Expand Down

0 comments on commit f2cbd45

Please sign in to comment.