Created
September 9, 2017 10:26
-
-
Save roh85/4adcdcda90e5a20a962975310a967d59 to your computer and use it in GitHub Desktop.
Get previous git tag and generate release notes
This file contains hidden or 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
# Get previous git tag | |
git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1) | |
# Generate release notes (in markdown format) | |
git log ""$tag""...HEAD --pretty=format:'* %s ' --reverse --no-merges |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment