From f93de879406b47e0bdb82bbb7d8d4ef3c696047a Mon Sep 17 00:00:00 2001 From: YHH <359807859@qq.com> Date: Sun, 19 Oct 2025 00:59:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20AI=20=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E5=8C=85=E5=90=AB=E4=BB=A3=E7=A0=81=E6=97=B6=E7=9A=84?= =?UTF-8?q?=20JavaScript=20=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ai-issue-helper.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-issue-helper.yml b/.github/workflows/ai-issue-helper.yml index a72fe138..fd45ab38 100644 --- a/.github/workflows/ai-issue-helper.yml +++ b/.github/workflows/ai-issue-helper.yml @@ -99,13 +99,20 @@ jobs: 请用中文友好地回复用户的问题。 prompt-file: prompt.txt + - name: Save AI Response + run: | + echo "${{ steps.ai.outputs.response }}" > ai_response.txt + - name: Post AI Response uses: actions/github-script@v7 with: script: | - github.rest.issues.createComment({ + const fs = require('fs'); + const response = fs.readFileSync('ai_response.txt', 'utf8'); + + await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, - body: `${{ steps.ai.outputs.response }}` + body: response });