fix(#812): preserve configured gitea API base URL

This commit is contained in:
ms-lead-reviewer
2026-07-20 00:54:18 -05:00
parent 0115d92fda
commit 1b1902010a
4 changed files with 101 additions and 20 deletions

View File

@@ -115,7 +115,11 @@ elif [[ "$PLATFORM" == "gitea" ]]; then
echo "Error: Gitea token not found for comment persistence" >&2
exit 1
}
api_base="https://$host/api/v1/repos/$repo"
configured_url=$(get_gitea_url_for_host "$host") || {
echo "Error: Configured Gitea URL not found for comment persistence" >&2
exit 1
}
api_base="${configured_url%/}/api/v1/repos/$repo"
payload=$(COMMENT_BODY="$COMMENT" python3 -c '
import json
import os