File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ jobs:
1616 REF=$(jq -r '.ref' <<< "$EVENT" | sed 's|refs/heads/||')
1717 COMPARE=$(jq -r '.compare' <<< "$EVENT")
1818
19- # List every commit (one line per commit)
20- COMMITS=$(jq -r '.commits[]
21- | " • " + (.message | gsub("\\r?\\n"; " "))
22- + " [`" + .id[0:7] + "`] by " + .author.name' <<< "$EVENT")
19+ # List every commit with numbered list and clickable commit hash
20+ REPO_URL="https://github.com/${{ github.repository }}"
21+ COMMITS=$(jq -r --arg repo "$REPO_URL" '.commits | to_entries[] |
22+ (1 + .key | tostring) + ". " +
23+ (.value.message | gsub("\\r?\\n"; " ")) +
24+ " [" + .value.id[0:7] + "](" + $repo + "/commit/" + .value.id + ") by " + .value.author.name' <<< "$EVENT")
2325
2426 {
2527 echo "COUNT=$COUNT"
You can’t perform that action at this time.
0 commit comments