【问题标题】:Git Commit - Generate Commit Message for release noteGit Commit - 为发行说明生成提交消息
【发布时间】:2021-11-17 10:10:47
【问题描述】:

如何以这种方式生成 git 输出,以便将这些更改放在项目发布说明中?

是否有任何脚本或工具可以做到这一点?

BREAKING CHANGES:

 - 3e4b520 [django]          

   Zsh already provides completion for the `django-admin` and `manage.py` commands, which is
   substantially better than the one provided by this plugin. We're therefore deprecating this
   plugin and we will remove it in the near future.

Features:

 - 4bd5d03 [golang]          Add `goga` alias to install dependencies in current directory, recursively (#7786)
 - 29ec526 [golang]          Add `gota` to test current directory recursively (#8974)
 - 7ded675 [jsontools]       Add tools to pretty print json-lines (ndjson) (#10176)
 - a4e6896 [lando]           Add support for `php` command (#10146)
 - 16de514 [lib]             Allow setting custom completion dots sequence (#9424)
 - 098bcda [update]          Allow updating from branch set up on install

Bug fixes:

 - d226918 [core]            Move plugin-generated completion files to `$ZSH_CACHE_DIR/completions`
 - 8784e88 [core]            Use `$HOME/.cache` if default cache dir is non-writable (#10193)
 - c21ff38 [docker]          Remove unwanted asterisk in completed docker commands
 - 4e6e496 [plugins]         Fix `_comps` error in completion generation plugins (#10190)
 - b79726b [update]          Silence `typeset` calls in `upgrade.sh` script (#10048)

Documentation:

 - 4d7f0cf [kubectx]         Fix README sample code syntax (#10199)

Other changes:

 - 93b557e [core]            Style: Make alternative cache directory equivalent to Arch Linux package
 - 3e4b520 [django]          Refactor: Deprecate plugin in favor of Zsh's django completion
 - 57e8c95 [installer]       Style: Use rainbow logo and polish success message (#10211)
 - b590939 [jsontools]       Refactor: Move to functions, align `is_json` tool to return exit code
 - f9d9d33 [jsontools]       Refactor: Restructure and simplify logic
 - eb2eaca [plugins]         Refactor: Remove old generated completion files
 - d87f29f [vim-interaction] Refactor: Clean up code and open gvim instance if none open (#10209)

【问题讨论】:

  • git log --pretty=oneline --abbrev-commit > RELEASE_NOTE 呢?

标签: git github-actions release


【解决方案1】:

这是运行omz changelog时Oh My Zsh中显示的输出,它是由tools/changelog.sh script(我创建的)生成的。

此变更日志是通过解析遵循常规提交规范的提交消息自动生成的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-29
    • 1970-01-01
    • 1970-01-01
    • 2015-07-08
    • 2011-05-16
    • 2019-05-17
    • 1970-01-01
    相关资源
    最近更新 更多