fix: remove hyphen and hardcoded repo

This commit is contained in:
ibo
2024-06-21 23:40:02 +02:00
committed by GitHub
parent 123cccfd20
commit 3b3166042a

View File

@@ -38,7 +38,7 @@ jobs:
fi
echo "Commits since $LAST_SHA:"
# Accumulate commit logs in a shell variable
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"● [[%h](https://github.com/rebelonion/Dantotsu/commit/%H)] %s ~%an")
COMMIT_LOGS=$(git log $LAST_SHA..HEAD --pretty=format:"[%h](https://github.com/${{ github.repository }}/commit/%H) %s ~%an")
# Replace commit messages with pull request links
COMMIT_LOGS=$(echo "$COMMIT_LOGS" | sed -E 's/#([0-9]+)/[#\1](https:\/\/github.com\/rebelonion\/Dantotsu\/pull\/\1)/g')
# URL-encode the newline characters for GitHub Actions