Add AI issue assessment workflow with github/ai-assessment-comment-labeler#1498
Add AI issue assessment workflow with github/ai-assessment-comment-labeler#1498
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.
@copilot remove bug-report-review.prompt.yml, this label doesn't exist
There was a problem hiding this comment.
Removed bug-report-review.prompt.yml and the workflow file in 705ca08.
There was a problem hiding this comment.
Don't remove bug-report-review.prompt.yml file!!
There was a problem hiding this comment.
@copilot Don't remove bug-report-review.prompt.yml file!!
There was a problem hiding this comment.
Restored bug-report-review.prompt.yml in 0bfc619.
|
|
||
| on: | ||
| issues: | ||
| types: [labeled] |
There was a problem hiding this comment.
@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.
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.
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' |
There was a problem hiding this comment.
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.
@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.
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.
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.