fix: rename GITEA_TOKEN to TF_TOKEN to comply with naming restrictions
Some checks failed
Test / frontend-tests (pull_request) Successful in 1m13s
Test / frontend-typecheck (pull_request) Successful in 1m15s
Test / rust-fmt-check (pull_request) Successful in 3m7s
Test / rust-clippy (pull_request) Successful in 28m59s
Test / rust-tests (pull_request) Successful in 31m16s
PR Review Automation / review (pull_request) Failing after 10s

This commit is contained in:
Shaun Arman 2026-04-10 13:04:04 -05:00
parent c077bf3348
commit 6c3d6fc2ec

View File

@ -53,13 +53,13 @@ jobs:
- name: Post review comment - name: Post review comment
if: success() if: success()
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} TF_TOKEN: ${{ secrets.TFT_GITEA_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }} PR_NUMBER: ${{ github.event.pull_request.number }}
run: | run: |
if [ -f "/tmp/pr_review.txt" ]; then if [ -f "/tmp/pr_review.txt" ]; then
REVIEW_BODY=$(cat /tmp/pr_review.txt | head -c 65536) REVIEW_BODY=$(cat /tmp/pr_review.txt | head -c 65536)
curl -s -X POST "https://gogs.tftsr.com/api/v1/repos/sarman/tftsr-devops_investigation/pulls/$PR_NUMBER/reviews" \ curl -s -X POST "https://gogs.tftsr.com/api/v1/repos/sarman/tftsr-devops_investigation/pulls/$PR_NUMBER/reviews" \
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $TF_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"body\": \"🤖 Automated PR Review:\n\n$REVIEW_BODY\n\n---\n*this is an automated review from Ollama*\", \"event\": \"COMMENT\"}" -d "{\"body\": \"🤖 Automated PR Review:\n\n$REVIEW_BODY\n\n---\n*this is an automated review from Ollama*\", \"event\": \"COMMENT\"}"
fi fi