mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-01 01:10:34 +08:00
chore: switch AI issue analysis to unified main branch
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
28
.github/workflows/issue-ai-analysis.yml
vendored
28
.github/workflows/issue-ai-analysis.yml
vendored
@@ -13,7 +13,7 @@ on:
|
||||
type: number
|
||||
|
||||
jobs:
|
||||
claude-analysis:
|
||||
ai-analysis:
|
||||
if: |
|
||||
(github.event_name == 'issues' && github.event.action == 'opened') ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
@@ -27,20 +27,18 @@ jobs:
|
||||
contents: read
|
||||
issues: write
|
||||
steps:
|
||||
# 这个 action 只负责编排,分析质量仍依赖配套的 issue/log analysis skill。
|
||||
# 分析质量仍依赖配套的 issue/log analysis skill。
|
||||
# 详细使用文档:https://github.com/MistEO/ai-issue-analysis
|
||||
# 最佳实践参考:
|
||||
# - https://github.com/MaaEnd/MaaEnd/blob/v2/.claude/skills/maaend-issue-log-analysis/SKILL.md
|
||||
# - https://github.com/MaaAssistantArknights/MaaAssistantArknights/blob/dev-v2/.claude/skills/maa-issue-log-analysis/SKILL.md
|
||||
- name: Analyze issue with Claude
|
||||
id: claude
|
||||
- name: Analyze issue with AI
|
||||
id: analysis
|
||||
continue-on-error: true
|
||||
uses: MistEO/ai-issue-analysis@claude
|
||||
uses: MistEO/ai-issue-analysis@main
|
||||
with:
|
||||
agent: claude
|
||||
api-key: ${{ secrets.BOT_AI_API_KEY }}
|
||||
api-base-url: ${{ secrets.BOT_AI_API_BASE_URL }}
|
||||
model: ${{ secrets.BOT_AI_MODEL }}
|
||||
github-token: ${{ secrets.MAA_BOT_TOKEN }}
|
||||
claude-api-key: ${{ secrets.CLAUDE_API_KEY }}
|
||||
claude-base-url: ${{ secrets.CLAUDE_BASE_URL }}
|
||||
claude-model: ${{ secrets.CLAUDE_MODEL }}
|
||||
bot-name: '@MaaArknightsBot'
|
||||
initial-comment-body: |
|
||||
🤖 **MaaBot 正在分析该 Issue...**
|
||||
@@ -54,11 +52,11 @@ jobs:
|
||||
- name: 查看完整输入输出
|
||||
if: always()
|
||||
env:
|
||||
ISSUE_NUMBER: ${{ steps.claude.outputs.issue-number }}
|
||||
COMMENT_ID: ${{ steps.claude.outputs.comment-id }}
|
||||
COMMENT_URL: ${{ steps.claude.outputs.comment-url }}
|
||||
ISSUE_NUMBER: ${{ steps.analysis.outputs.issue-number }}
|
||||
COMMENT_ID: ${{ steps.analysis.outputs.comment-id }}
|
||||
COMMENT_URL: ${{ steps.analysis.outputs.comment-url }}
|
||||
run: |
|
||||
echo "issue_number=$ISSUE_NUMBER"
|
||||
echo "comment_id=$COMMENT_ID"
|
||||
echo "comment_url=$COMMENT_URL"
|
||||
echo "(Full claude-output and final-conclusion are available in the uploaded artifacts)"
|
||||
echo "(Full agent-output and final-conclusion are available in the uploaded artifacts)"
|
||||
|
||||
Reference in New Issue
Block a user