Skip to content

Commit

Permalink
[ci skip] port gen-changelog from 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 11, 2017
1 parent 6b6092e commit 24dd897
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions util/gen-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ end="$2"

enddate=`git log -1 ${end} --pretty="%ai" | cut -d ' ' -f 1`

startrev="`git show ${start}:build.log | awk '/polymer: / {print $2}'`"
endrev="`git show ${end}:build.log | awk '/polymer: / {print $2}'`"

old=""
if [ -e CHANGELOG.md ]; then
old="`sed -e '1,2d' CHANGELOG.md`"
Expand All @@ -18,7 +15,7 @@ cat > CHANGELOG.md <<EOD
# Change Log
## [${end}](https://github.com/Polymer/polymer/tree/${end}) (${enddate})
`git log --no-merges "${startrev}".."${endrev}^1" --pretty="${PRETTY}"`
`git log --no-merges "${start}".."${end}^1" --pretty="${PRETTY}"`
${old}
EOD

0 comments on commit 24dd897

Please sign in to comment.