Skip to content

Commit 0bfc619

Browse files
CopilotJoannaaKL
andcommitted
Restore workflow and prompt, run on bug label or unlabeled issues
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
1 parent 705ca08 commit 0bfc619

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: AI Issue Assessment
2+
3+
on:
4+
issues:
5+
types: [opened, labeled]
6+
7+
jobs:
8+
ai-issue-assessment:
9+
if: >
10+
(github.event.action == 'opened' && github.event.issue.labels[0] == null) ||
11+
(github.event.action == 'labeled' && github.event.label.name == 'bug')
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
models: read
16+
contents: read
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Run AI assessment
23+
uses: github/ai-assessment-comment-labeler@e3bedc38cfffa9179fe4cee8f7ecc93bffb3fee7 # v1.0.1
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
issue_number: ${{ github.event.issue.number }}
27+
issue_body: ${{ github.event.issue.body }}
28+
prompts_directory: '.github/prompts'
29+
labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml'

0 commit comments

Comments
 (0)