版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 line
262 B

  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