Skip to content

Commit

Permalink
Adapt to new CHANGELOG format
Browse files Browse the repository at this point in the history
  • Loading branch information
madarche committed Mar 16, 2017
1 parent db3e29c commit 67b78e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assert_changelog_ready
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ rollbackPackage() {
git checkout package.json
}

# Checking the CHANGELOG contains an entry for each version
# Checking the CHANGELOG contains an entry (with right format) for each version.
# The expected format is as follows:
# ## [VERSION]
for entry in $(git tag|cut -c 2-) $new_version
do
if $(grep -q -E ^$entry CHANGELOG.md)
if $(grep --quiet -E "^## \[$entry\]" CHANGELOG.md)
then
echo "OK: Entry $entry present in the CHANGELOG.md"
else
Expand Down

0 comments on commit 67b78e4

Please sign in to comment.