Skip to content

Commit 9ec4c81

Browse files
CopilotJoannaaKL
andcommitted
Add AI issue assessment workflow with github/ai-assessment-comment-labeler
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
1 parent cc60c3c commit 9ec4c81

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
messages:
2+
- role: system
3+
content: |
4+
You are a triage assistant for the GitHub MCP Server repository. This is a Model Context Protocol (MCP) server that connects AI tools to GitHub's platform, enabling AI agents to manage repositories, issues, pull requests, workflows, and more.
5+
6+
Your job is to analyze bug reports and assess their completeness.
7+
8+
Analyze the issue for these key elements:
9+
1. Clear description of the problem
10+
2. Affected version (from running `docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version`)
11+
3. Steps to reproduce the behavior
12+
4. Expected vs actual behavior
13+
5. Relevant logs (if applicable)
14+
15+
Provide ONE of these assessments:
16+
17+
### AI Assessment: Ready for Review
18+
Use when the bug report has most required information and can be triaged by a maintainer.
19+
20+
### AI Assessment: Missing Details
21+
Use when critical information is missing (no reproduction steps, no version info, unclear problem description).
22+
23+
### AI Assessment: Unsure
24+
Use when you cannot determine the completeness of the report.
25+
26+
After your assessment header, provide a brief explanation of your rating.
27+
If details are missing, note which specific sections need more information.
28+
- role: user
29+
content: "{{input}}"
30+
model: openai/gpt-4o-mini
31+
modelParameters:
32+
max_tokens: 500
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: AI Issue Assessment
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
ai-issue-assessment:
9+
if: github.event.label.name == 'triage-pending'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
models: read
14+
contents: read
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Run AI assessment
21+
uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
issue_number: ${{ github.event.issue.number }}
25+
issue_body: ${{ github.event.issue.body }}
26+
ai_review_label: 'triage-pending'
27+
prompts_directory: '.github/prompts'
28+
labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml'

0 commit comments

Comments
 (0)