Created
April 12, 2018 22:23
-
-
Save jmvrbanac/26952fc53eb1d96db2322c0280fb67a0 to your computer and use it in GitHub Desktop.
Adding git log to bumpversion tag commits
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
#!/bin/bash | |
export MESSAGE=$(echo -e "\n\n$(git log `git describe --tags --abbrev=0`..HEAD --oneline)") | |
bumpversion \ | |
--message 'Bump version: {current_version} → {new_version}{$MESSAGE}' \ | |
${@:1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment