From c4dab0f38ac326b17c4b476fd264b2d9f9c8300b Mon Sep 17 00:00:00 2001 From: Marcos Date: Mon, 17 Aug 2026 18:20:06 +0000 Subject: [PATCH] fix(pilot): use correct Gitea raw API path (?ref=main) in workflow template The previous /raw/branch/main/ form 404s on private repos; Gitea's raw endpoint is /raw/?ref=. Verified the bot token fetches the script with the corrected form. Co-Authored-By: Claude --- pilot/workflow-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/workflow-template.yml b/pilot/workflow-template.yml index 57b5183..9c1ed0b 100644 --- a/pilot/workflow-template.yml +++ b/pilot/workflow-template.yml @@ -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 \ No newline at end of file