Fix: usa browser_download_url per asset upload

This commit is contained in:
2026-05-30 23:57:54 +02:00
parent 749faf7c46
commit 2c09b5c349

View File

@@ -161,7 +161,7 @@ runs:
-H "Authorization: token $TOKEN" \
-H "Accept: application/json" \
-F "attachment=@${MD_FILE};filename=triage-issue-${ISSUE_NUM}.md" 2>/dev/null)
ASSET_URL=$(echo "$ASSET_RESP" | jq -r '.download_url // empty' 2>/dev/null)
ASSET_URL=$(echo "$ASSET_RESP" | jq -r '.browser_download_url // empty' 2>/dev/null)
if [ -n "$ASSET_URL" ] && [ "$ASSET_URL" != "null" ]; then
LINK_MD="\n\n---\n📎 **Analisi tecnica completa**: [triage-issue-${ISSUE_NUM}.md](${ASSET_URL})"
echo "Asset MD caricato: $ASSET_URL"