fix(#812): preserve configured gitea API base URL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user