Skip to content

Instantly share code, notes, and snippets.

@weslleyaraujo
Created July 7, 2016 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weslleyaraujo/86f1c4638cdccfd1dc41f2195b931b01 to your computer and use it in GitHub Desktop.
Save weslleyaraujo/86f1c4638cdccfd1dc41f2195b931b01 to your computer and use it in GitHub Desktop.
git log --first-parent --pretty=format:'%s' \
| grep -v '^update changelog' \
| perl -p -e 's/^((v?[0-9]+\.?)+)$/\n## \1\n/g' \
| perl -p -e 's/^([^#\s].*)$/* \1/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment