Skip to content

Commit

Permalink
Extend underline of RST title in CHANGELOG written by bump_version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescooke committed May 24, 2020
1 parent 5de3245 commit 2c9716f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ echo "*** /src/flake8_aaa/__about__.py updated."

# Add new version subtitle after link to latest docs, released today

sed --in-place "/#__unreleased_marker__/ a\ \n${new_version}_ - ${today}\n-------------------" CHANGELOG.rst
# underline=$(echo $new_version | sed 's/./-/g')
title="${new_version}_ - ${today}"
underline=${title//?/-}
sed --in-place "/#__unreleased_marker__/ a\ \n${title}\n${underline}" CHANGELOG.rst

# This leaves a single whitespace on the line above the new subtitle, so remove that

Expand Down

0 comments on commit 2c9716f

Please sign in to comment.