Skip to content

Commit d4d60dc

Browse files
committed
fix(changelog): mark untagged changes in Unreleased
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
1 parent 96f0bed commit d4d60dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bash/changelog

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,15 @@ function ::full() {
5555
if [ -z "$later_tag" ]; then
5656
later_tag="$tag"
5757
this_version=$(git describe --tags)
58+
long_version=$(git describe --tags --long)
59+
if [ "$this_version" = "$long_version" ]; then
60+
header_version="Unreleased"
61+
else
62+
header_version="$this_version"
63+
fi
64+
5865
if [ "$this_version" != "$tag" ]; then
59-
echo "## $this_version"
66+
echo "## $header_version"
6067
echo
6168
::fromto "$tag" "HEAD" "$(git::projecturl)" | grep -v '^* ci' | uniq
6269
fi

0 commit comments

Comments
 (0)