Add PR/commit links to release changelog
CI / build-and-scan (push) Successful in 48s

This commit is contained in:
Djeex
2026-08-22 15:55:29 +02:00
parent f6bc55bc7f
commit 344b09bcb0
+8
View File
@@ -146,12 +146,20 @@ jobs:
CHANGED_LIST=$(echo "$CHANGED" | sed 's/^/- /') CHANGED_LIST=$(echo "$CHANGED" | sed 's/^/- /')
REPO_URL="https://git.djeex.fr/Djeex/adguard-cidre"
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
SOURCE_LINE="[${SHORT_SHA}](${REPO_URL}/commit/${{ github.sha }})"
if [ -n "$PR_NUM" ]; then
SOURCE_LINE="[#${PR_NUM}](${REPO_URL}/pulls/${PR_NUM}) · ${SOURCE_LINE}"
fi
BODY=$(cat <<EOF BODY=$(cat <<EOF
## Changelog ## Changelog
### ${CATEGORY} ### ${CATEGORY}
${CHANGE_TITLE} ${CHANGE_TITLE}
**Source:** ${SOURCE_LINE}
**Image:** \`${IMAGE}:${VERSION}\` **Image:** \`${IMAGE}:${VERSION}\`
**Changed files:** **Changed files:**