fix(pilot): use correct Gitea raw API path (?ref=main) in workflow template

The previous /raw/branch/main/<path> form 404s on private repos; Gitea's raw
endpoint is /raw/<path>?ref=<ref>. Verified the bot token fetches the script
with the corrected form.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Marcos
2026-08-17 18:20:06 +00:00
parent 6f012e9b66
commit c4dab0f38a
+1 -1
View File
@@ -41,5 +41,5 @@ jobs:
set -e
# Fetch the reviewer script from the pragent repo (private → bot token).
curl -fsS -H "Authorization: token $PRAGENT_BOT_TOKEN" \
"$GITEA_API/api/v1/repos/gitea_admin/pragent/raw/branch/main/pilot/ai_review.py" -o ai_review.py
"$GITEA_API/api/v1/repos/gitea_admin/pragent/raw/pilot/ai_review.py?ref=main" -o ai_review.py
python3 ai_review.py