diff --git a/.github/scripts/release/create_changelog.sh b/.github/scripts/release/create_changelog.sh index 2c7930d7..c3939332 100755 --- a/.github/scripts/release/create_changelog.sh +++ b/.github/scripts/release/create_changelog.sh @@ -20,10 +20,12 @@ CHANGELOG_FILE="CHANGELOG.md" echo "## What has changed" >> $CHANGELOG_FILE -git log "$LAST_RELEASE_TAG..$CURRENT_RELEASE_TAG" --pretty=tformat:"%h" --reverse | while read -r commit +git log "$LAST_RELEASE_TAG"..HEAD --pretty=tformat:"%h" --reverse | while read -r commit do COMMIT_AUTHOR=$(curl -H "$GITHUB_AUTH_HEADER" -sS "$GITHUB_URL"/commits/"$commit" | jq -r '.author.login') - git show -s "$commit" --format="* %s by @$COMMIT_AUTHOR" >> $CHANGELOG_FILE + if [ "${COMMIT_AUTHOR}" != "kyma-bot" ]; then + git show -s "${commit}" --format="* %s by @${COMMIT_AUTHOR}" >> ${CHANGELOG_FILE} + fi done {