changelog.sh 262 B

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