-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add AI issue assessment workflow with github/ai-assessment-comment-labeler #1498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…beler Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
| issue_body: ${{ github.event.issue.body }} | ||
| ai_review_label: 'triage-pending' | ||
| prompts_directory: '.github/prompts' | ||
| labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove bug-report-review.prompt.yml, this label doesn't exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed bug-report-review.prompt.yml and the workflow file in 705ca08.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't remove bug-report-review.prompt.yml file!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Don't remove bug-report-review.prompt.yml file!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored bug-report-review.prompt.yml in 0bfc619.
|
|
||
| on: | ||
| issues: | ||
| types: [labeled] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot run this workflow on issues that have label bug and issues that don't have any label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated workflow to trigger on issues with bug label OR newly opened issues without any labels in 0bfc619.
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds automated AI-powered issue assessment using the github/ai-assessment-comment-labeler action to help triage new issues and bug reports.
Key changes:
- Adds workflow that triggers on newly opened unlabeled issues and issues receiving the 'bug' label
- Configures AI assessment to evaluate bug report completeness and suggest appropriate labels
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/ai-issue-assessment.yml |
Defines workflow triggered on issue opened/labeled events, runs AI assessment action with bug report prompt mapping |
.github/prompts/bug-report-review.prompt.yml |
Configures AI prompt to assess bug reports for completeness (description, version, repro steps, expected behavior, logs) and provide one of three assessment levels |
| issue_number: ${{ github.event.issue.number }} | ||
| issue_body: ${{ github.event.issue.body }} | ||
| prompts_directory: '.github/prompts' | ||
| labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' |
Copilot
AI
Nov 28, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The labels_to_prompts_mapping parameter maps 'bug' label to 'bug-report-review.prompt.yml', but the workflow also runs for newly opened issues without any labels (line 10). For unlabeled issues, it's unclear which prompt will be used since there's no 'bug' label to match against.
Consider either:
- Adding a default prompt mapping for unlabeled issues
- Documenting that unlabeled issues won't be assessed (and updating the workflow condition to only run on labeled bugs)
- Verifying that the action handles this case appropriately with a fallback prompt
| labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml' | |
| labels_to_prompts_mapping: 'bug,bug-report-review.prompt.yml;default,default-issue-review.prompt.yml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot but default-issue-review.prompt.yml doesn't exist, can you propose how it could look like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created default-issue-review.prompt.yml in 5e1b41c. It analyzes new issues to determine their type (bug, feature request, question, etc.) and assesses whether they have enough information for maintainers to act on.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
SamMorrowDrums
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it! I hope it suggests to close all my issues labelling as "Won't-fix"
Closes: #667
Adds AI-powered issue assessment using
github/ai-assessment-comment-labelerto automatically analyze new issues.Changes:
.github/workflows/ai-issue-assessment.yml— Workflow triggered on issues withbuglabel OR newly opened issues without any labels.github/prompts/bug-report-review.prompt.yml— Prompt assessing bug report completeness (description, version, repro steps, expected vs actual, logs).github/prompts/default-issue-review.prompt.yml— Default prompt for unlabeled issues that analyzes issue type and completenessUsage:
buglabelai:bug-report-review:ready for revieworai:bug-report-review:missing detailsTradeoffs:
buglabeled issues to balance coverage with noise reduction per issue requirementsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.