feat(issue): add label and unassigned filters to /issue #183
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 305 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #183"
general
weight: 0.35
akshat-lakhera
Fixes #166: [FEATURE]: Add label and unassigned filters to /issue
/issue only took repo and limit, so there was no way to ask for beginner friendly or still unclaimed issues, and this adds two optional options for that. label shows only the issues that have that label, for example good first issue, and when several labels are given separated by commas GitHub returns the issues that have all of them. unassigned shows only the issues that have no assignee.
Both are sent to the GitHub issues API as the labels and assignee=none query parameters in list_repo_open_issues, so the filtering happens on GitHub and the limit still applies to the filtered result. Pull requests are still dropped as before, the assignee parameter is left out when unassigned is false, a blank label is treated as no label, and no extra API calls are made.
Without the new options the command works exactly as it did before, including the call made to the adapter and the reply when nothing is found. When filters are used and nothing matches, the reply says which ones were applied, for example "No open issues found in repo with label good first issue and no assignee". The README and the quick start guide now mention both options.
The new tests in tests/test_issue_list.py check the query params sent for both filters, for one of them and for none, that pull requests are dropped while the limit still holds, the label normalization, that the default call is unchanged and the empty result message. The full pytest run passes with 921 tests, and ruff check src tests reports the same 349 findings that main already has with none new. I have not run it against a live Discord server or the real GitHub API.
PTAL @shubham5080
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
The
/issuecommand supports optional label and unassigned-only filters.When no issues match, the response indicates which filters were applied.
Documentation
* Updated the quick-start guide and README to describe the available filters.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->