Last active
June 5, 2019 13:32
-
-
Save schmunk42/9f7d3a0afbadfe7ba2e05bc30212238a to your computer and use it in GitHub Desktop.
Bash git changelog draft function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: git-changelog-markdown > changelog-draft.md | |
git-changelog-markdown () { | |
git log --topo-order --pretty="format:%d - %s" | sed 's/(tag.*) /\ | |
### & \ | |
/' \ | |
| grep -v 'Merge pull request' \ | |
| grep -v 'Merge commit' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment