Skip to content

Commit

Permalink
Change version format in changelog script
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Apr 15, 2024
1 parent d4834d1 commit 7dec8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ set -e
set -u

get_version_log() {
local FORMAT='* %s [%h]'
if [ ! -z "${PREV}" ]; then
VERSION_NUMBER=$(echo $VER | sed 's/^v//')
echo ''
echo "## Version ${VERSION_NUMBER} "
echo ''
echo -e "$(git log --oneline --format='* %s' ${VER}...${PREV})"
echo -e "$(git log --oneline --format="${FORMAT}" ${VER}...${PREV})"
fi
}


if [ $# -eq 0 ]; then
VER=$(git describe --tags --abbrev=0)
PREV=$(git describe --tags --abbrev=0 ${VER}^)
Expand Down

0 comments on commit 7dec8ac

Please sign in to comment.