1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-01 20:36:33 +02:00

github-ci: fix broken link

This commit is contained in:
Justin Tobler 2024-05-02 09:38:15 -05:00
parent f37b731ebb
commit b7671f5aff

View File

@ -52,12 +52,13 @@ jobs:
problems+=("1) --- ${commitTextmd}")
echo ""
echo "--- ${commitText}"
currentCommit=$commit
commit=
fi
case "${dash}" in
*:[1-9]*:) # contains file and line number information
dashend=${dash#*:}
problems+=("[${dash}](https://github.com/${{ github.repository }}/blob/${{github.event.pull_request.head.ref}}/${dash%%:*}#L${dashend%:}) ${sha} ${etc}")
problems+=("[${dash}](https://github.com/${{ github.repository }}/blob/${currentCommit}/${dash%%:*}#L${dashend%:}) ${sha} ${etc}")
;;
*)
problems+=("\`${dash} ${sha} ${etc}\`")