Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gen-changelog.sh « lockfile « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 360e54af40f6af2ba3d1aad8838478d8ab0715f6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
(
  echo '# Changes'
  echo ''
  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'
)> CHANGELOG.md