gen-changelog.sh 238 B

123456789
  1. #!/bin/bash
  2. (
  3. echo '# Changes'
  4. echo ''
  5. git log --first-parent --pretty=format:'%s' \
  6. | grep -v '^update changelog' \
  7. | perl -p -e 's/^((v?[0-9]+\.?)+)$/\n## \1\n/g' \
  8. | perl -p -e 's/^([^#\s].*)$/* \1/g'
  9. )> CHANGELOG.md