← Back to Pull requests

feat(issue): add label and unassigned filters to /issue #183

Closed
unknown closed this pull request without merging on Nov 10, 2026 05:20 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 17:54 UTC
Author

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.

  • Tests pass locally (pytest)

  • Docs updated when needed

  • Config examples still match runtime behavior

  • No secrets committed

  • Lint clean (ruff check) when you touched Python (ruff has 349 findings on main already; none are new)
  • PTAL @shubham5080

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    The /issue command 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 -->

    Diff: 305 lines (+228 / -77) across 3 files Reviewer: akshat-lakhera Review duration: 7885m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.9% · Safe to merge
    15.9%