Skip to content

Instantly share code, notes, and snippets.

@ericlake
Forked from jmvrbanac/version.sh
Created October 18, 2018 17:49
Show Gist options
  • Save ericlake/accd5e7c9da22004983984958c6666d0 to your computer and use it in GitHub Desktop.
Save ericlake/accd5e7c9da22004983984958c6666d0 to your computer and use it in GitHub Desktop.
Adding git log to bumpversion tag commits
#!/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