Skip to content

Commit 9b28516

Browse files
chore(release): always mention GitHub username for commit author
Co-authored-by: matifali <[email protected]>
1 parent b206a68 commit 9b28516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ jobs:
9090
if [ -n "$COMMIT_LINES" ]; then
9191
FILTERED_CHANGELOG="${FILTERED_CHANGELOG}${COMMIT_LINES}\n"
9292
else
93-
COMMIT_MSG=$(git log --format="%s" -n 1 $sha)
94-
AUTHOR=$(gh api repos/:owner/:repo/commits/$sha --jq '.author.login // .commit.author.name')
93+
COMMIT_MSG=$(git log --format=\"%s\" -n 1 $sha)
94+
AUTHOR=$(gh api repos/:owner/:repo/commits/$sha --jq '.author.login')
9595
FILTERED_CHANGELOG="${FILTERED_CHANGELOG}* $COMMIT_MSG by @$AUTHOR\n"
9696
fi
9797
done

0 commit comments

Comments
 (0)