Skip to content

Instantly share code, notes, and snippets.

@jmvrbanac
Created April 12, 2018 22:23
Show Gist options
  • Save jmvrbanac/26952fc53eb1d96db2322c0280fb67a0 to your computer and use it in GitHub Desktop.
Save jmvrbanac/26952fc53eb1d96db2322c0280fb67a0 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