parcoursup/node_modules/foreground-child/changelog.sh
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

11 lines
262 B
Bash

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