From 130f466026af6c73eef8c96b7788cc0a93debc18 Mon Sep 17 00:00:00 2001 From: YHH <359807859@qq.com> Date: Sun, 19 Oct 2025 01:01:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=20AI=20Issue=20He?= =?UTF-8?q?lper=20=E7=9A=84=20MCP=20=E9=85=8D=E7=BD=AE=E5=92=8C=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E4=BC=A0=E9=80=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ai-issue-helper.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ai-issue-helper.yml b/.github/workflows/ai-issue-helper.yml index fd45ab38..5e8ec939 100644 --- a/.github/workflows/ai-issue-helper.yml +++ b/.github/workflows/ai-issue-helper.yml @@ -82,7 +82,7 @@ jobs: id: ai with: model: 'gpt-4o-mini' - mcp: github + enable-github-mcp: true system-prompt: | 你是 ECS Framework 项目的 AI 助手。 @@ -99,20 +99,15 @@ jobs: 请用中文友好地回复用户的问题。 prompt-file: prompt.txt - - name: Save AI Response - run: | - echo "${{ steps.ai.outputs.response }}" > ai_response.txt - - name: Post AI Response + env: + AI_RESPONSE: ${{ steps.ai.outputs.response }} uses: actions/github-script@v7 with: script: | - 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: response + body: process.env.AI_RESPONSE });