Skip to content

Instantly share code, notes, and snippets.

@zhwei
Last active February 11, 2017 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhwei/dd60c9f4f3959f680dac5d808ff3a705 to your computer and use it in GitHub Desktop.
Save zhwei/dd60c9f4f3959f680dac5d808ff3a705 to your computer and use it in GitHub Desktop.
Generate release body from commits
# Example
#
# $ git show `(git tag | tail -n 1)` | head -n 1 | awk -F ' ' '{print $2}' | \
# xargs -IX git log --format='- [%s](https://github.com/wutongwan/Laputa/commit/%h) @%an' X...
#
# - [increment version](https://github.com/wutongwan/Laputa/commit/7e56021) @Zhang Wei
# - [修正 Mode Operator 中 mode 的继承关系 && 使用 HTMLFacade 替换简单 view](https://github.com/wutongwan/Laputa/commit/4e09b9c) @zhwei
# - [修改数据源函数的可见性 && add model() to form](https://github.com/wutongwan/Laputa/commit/2ed41ce) @zhwei
git show `(git tag | tail -n 1)` | head -n 1 | awk -F ' ' '{print $2}' | \
xargs -IX git log --format='- [%s](https://github.com/__USER__/__REPO__/commit/%h) @%an' X...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment