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:
@@ -41,5 +41,5 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
# Fetch the reviewer script from the pragent repo (private → bot token).
|
# Fetch the reviewer script from the pragent repo (private → bot token).
|
||||||
curl -fsS -H "Authorization: token $PRAGENT_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
|
python3 ai_review.py
|
||||||
Reference in New Issue
Block a user