Skip to content

Commit

Permalink
fix: Excluded latest commit from changelog query
Browse files Browse the repository at this point in the history
Else changelog will contain current tag rather than the actually wanted previous release
  • Loading branch information
UnseenWizzard committed Jul 23, 2022
1 parent e6e3fbe commit 56dd74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/git-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi
NEW_VERSION=$1

# Get the last release tag (reverse sort by date, limited to one, return only refname, if pattern matches a hardening tag)
LATEST_RELEASE=$(git for-each-ref --sort=-creatordate --count=1 --format="%(refname)" refs/tags/release/*)
LATEST_RELEASE=$(git for-each-ref --sort=-creatordate --count=1 --format="%(refname)" --no-contains=HEAD refs/tags/release/*)

# Get extra short gitlog from laste release to current HEAD
GIT_CHANGELOG=$(git log $LATEST_RELEASE..HEAD --format="- %s ([%h]($2/commits/%h))" | sort)
Expand Down

0 comments on commit 56dd74b

Please sign in to comment.