Skip to content

ci: add AI issue analysis bot workflow and skill#398

Merged
yltx merged 1 commit intomainfrom
yltx/ai-issue-analysis-bot
Apr 4, 2026
Merged

ci: add AI issue analysis bot workflow and skill#398
yltx merged 1 commit intomainfrom
yltx/ai-issue-analysis-bot

Conversation

@yltx
Copy link
Copy Markdown
Contributor

@yltx yltx commented Apr 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 4, 2026 16:23
@yltx yltx merged commit 8e56810 into main Apr 4, 2026
3 checks passed
@yltx yltx deleted the yltx/ai-issue-analysis-bot branch April 4, 2026 16:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an AI-powered GitHub Issue analysis workflow (based on MistEO/ai-issue-analysis) and accompanying documentation/skill guidance so issues can be automatically triaged and commented on with structured analysis.

Changes:

  • Introduce a new GitHub Actions workflow to analyze issues on open/reopen, keyword mention in comments, or manual dispatch.
  • Add repository documentation describing setup (secrets), triggers, and expected outputs.
  • Add a .claude skill definition providing a structured playbook for issue/log analysis tailored to this repo.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/ai-issue-analysis-bot.md Documents the bot, triggers, required secret, and usage guidance.
.github/workflows/ai-issue-analysis.yml Implements the automation workflow that runs the external analysis action and posts results.
.claude/skills/generic-issue-log-analysis/SKILL.md Defines the analysis “skill”/playbook the bot can follow, including repo-specific hints and output format.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# - .claude/skills/generic-issue-log-analysis/SKILL.md
- name: Analyze issue with AI
id: analysis
uses: MistEO/ai-issue-analysis@main
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using MistEO/ai-issue-analysis@main pins the workflow to a moving branch, which is a supply-chain risk and can cause unexpected behavior changes. Pin this action to an immutable ref (a tagged release or a specific commit SHA) and update it intentionally when needed.

Suggested change
uses: MistEO/ai-issue-analysis@main
uses: MistEO/ai-issue-analysis@0123456789abcdef0123456789abcdef01234567

Copilot uses AI. Check for mistakes.
Comment on lines +48 to +63
- name: 查看完整输入输出
if: always()
env:
ANALYSIS_PROMPT: ${{ steps.analysis.outputs.analysis-prompt }}
ISSUE_NUMBER: ${{ steps.analysis.outputs.issue-number }}
COMMENT_ID: ${{ steps.analysis.outputs.comment-id }}
COMMENT_URL: ${{ steps.analysis.outputs.comment-url }}
COPILOT_OUTPUT: ${{ steps.analysis.outputs.copilot-output }}
FINAL_CONCLUSION: ${{ steps.analysis.outputs.final-conclusion }}
run: |
printf '%s\n' "$ANALYSIS_PROMPT"
echo "issue_number=$ISSUE_NUMBER"
echo "comment_id=$COMMENT_ID"
echo "comment_url=$COMMENT_URL"
printf '%s\n' "$COPILOT_OUTPUT"
printf '%s\n' "$FINAL_CONCLUSION"
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow currently prints the full analysis prompt and Copilot raw output to the Actions log. In public repos (and for many org/repo permission models), workflow logs can be broadly readable, and issue text/attachments can contain tokens, emails, or other sensitive data. Please avoid emitting raw prompt/output to stdout; prefer redaction/truncation, or write details only to an artifact with a short retention period and clear access expectations.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants