Skip to content

Commit

Permalink
chore: updated changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
copernico committed Sep 23, 2020
1 parent fdc031a commit c9fb2c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scripts/changelog-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
'change': "Changes",
'refactor': "Changes",
'refactoring': "Changes",
'chore': "Chores",
'chore': "Misc",
'misc': "Misc",
'docs': "Docs"}


Expand Down
10 changes: 7 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ echo "Creating changelog..."
> NEW-CHANGELOG.md
head -n1 CHANGELOG.md >> NEW-CHANGELOG.md
echo >> NEW-CHANGELOG.md
$PROJECT_ROOT/scripts/changelog-gen.py >> NEW-CHANGELOG.md
$PROJECT_ROOT/scripts/changelog-gen.py >> CHANGELOG-${RELEASE}.md
cat CHANGELOG-${RELEASE}.md >> NEW-CHANGELOG.md
tail -n +2 CHANGELOG.md >> NEW-CHANGELOG.md
mv NEW-CHANGELOG.md CHANGELOG.md

Expand All @@ -34,6 +35,9 @@ echo "Pushing..."
git push
git push --tags

echo "Do not forget to update $PROJECT_ROOT/kaybee/VERSION"
echo "and to create a release on GitHub"
echo "Update the version for the next relase cycle (Enter to proceed)"
read
nano $PROJECT_ROOT/kaybee/VERSION

echo "Do not forget to create a release on GitHub"
echo "Done"

0 comments on commit c9fb2c0

Please sign in to comment.