Skip to content

Commit

Permalink
housekeeping: make release note generator more flexible (via #5266)
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Mar 26, 2019
1 parent c07877b commit 98610f8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions release/get-changelog.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
echo '**Interface changes**: ???'
echo ''
echo '**Changelog**:'
./node_modules/.bin/conventional-changelog -p angular | tail -n +3
echo "_No release summary included._\n\n#### Changelog\n"

PREV_RELEASE_REF=$(git log --pretty=oneline | grep ' release: ' | head -n 2 | tail -n 1 | cut -f 1 -d " ")

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 comments on commit 98610f8

Please sign in to comment.