From 79ded84c5021c48bd64c93942e97e96f77a9ab0b Mon Sep 17 00:00:00 2001 From: Christopher Lee Date: Mon, 4 Oct 2021 13:00:27 -0500 Subject: [PATCH] update --- .github/workflows/generate-release-notes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-release-notes.sh b/.github/workflows/generate-release-notes.sh index 279dccbf..8810ea29 100755 --- a/.github/workflows/generate-release-notes.sh +++ b/.github/workflows/generate-release-notes.sh @@ -8,7 +8,7 @@ try: changelogContent = file.read() unreleasedTitle = "## [Unreleased]" - previousReleaseTitle = "$1"[1:] + previousReleaseTitle = "$1" previousReleaseTitle = "## [%s]" % (previousReleaseTitle) startIndex = changelogContent.index(unreleasedTitle) + len(unreleasedTitle) endIndex = changelogContent.index(previousReleaseTitle, startIndex) @@ -22,6 +22,6 @@ END echo echo "
Commit History" echo -git log --pretty=format:"* %s (%h)" $1...HEAD +git log --pretty=format:"* %s (%h)" v$1...HEAD echo echo "
"