From 7be691a8f7df9ee89208d4d53fe44c362d6d6518 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 16 Nov 2025 18:12:44 +0000 Subject: [PATCH] fix --- .github/workflows/translation-ai-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/translation-ai-check.yml b/.github/workflows/translation-ai-check.yml index d8f8f4302..13f0cb0e1 100644 --- a/.github/workflows/translation-ai-check.yml +++ b/.github/workflows/translation-ai-check.yml @@ -65,7 +65,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - jq -n --arg body "AI translation check result:\n\nDiff length exceeded, can't query API" '{body:$body}' > body.json + jq -n --arg body "Diff length exceeded, can't query API" '{body: ("AI translation check result:\n\n" + $body)}' > body.json curl -sS -X POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Content-Type: application/json" \ @@ -103,11 +103,11 @@ jobs: # Extract response text COMMENT=$(jq -r '.choices[0].message.content // empty' response.json) if [ -z "$COMMENT" ]; then - COMMENT="AI translation check result:\n\nAI did not return a response." + COMMENT="AI did not return a response." fi # Post the review as a PR comment - jq -n --arg body "AI translation check result:\n\n$COMMENT" '{body:$body}' > body.json + jq -n --arg body "$COMMENT" '{body: ("AI translation check result:\n\n" + $body)}' > body.json curl -sS -X POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Content-Type: application/json" \