Skip to content

Commit d97cd47

Browse files
authored
housekeeping: make changelog generator more flexible (via #1428)
1 parent 2ef38bd commit d97cd47

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

release/get-changelog.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
echo '**Interface changes**: ???'
2-
echo ''
3-
echo '**Changelog**:'
4-
./node_modules/.bin/conventional-changelog -p angular | tail -n +3
1+
echo "_No release summary included._\n\n#### Changelog\n"
2+
3+
PREV_RELEASE_REF=$(git log --pretty=oneline | grep ' release: ' | head -n 2 | tail -n 1 | cut -f 1 -d " ")
4+
5+
git log --pretty=oneline $PREV_RELEASE_REF..HEAD | awk '{ $1=""; print}' | sed -e 's/^[ \t]*//' | sed 's/^feat/0,feat/' | sed 's/^improve/1,improve/' | sed 's/^fix/2,fix/'| sort | sed 's/^[0-2],//' | sed 's/^/* /'

0 commit comments

Comments
 (0)