Add --category filter to project:issues for filtering by issue type#328
Add --category filter to project:issues for filtering by issue type#328
Conversation
…type Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> Agent-Logs-Url: https://github.com/mglaman/drupalorg-cli/sessions/ac0e1342-727c-4ba5-8482-d218b7aa6098
|
@copilot should we update the generic drupalorg-cli skill and any other docs to explain this new flag |
…ject:issues Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> Agent-Logs-Url: https://github.com/mglaman/drupalorg-cli/sessions/f99f29f0-fa50-44ce-b91a-3c0c23eb3f42
Updated |
There was a problem hiding this comment.
Pull request overview
Adds an optional issue-category filter to the project issues listing flow, enabling users (and MCP tooling) to scope results by Drupal.org issue type (bug/task/feature/support/plan) while keeping existing status-based filtering intact.
Changes:
- Introduces
ProjectIssueCategoryenum with a Drupal.orgfield_issue_categoryID mapper. - Extends
GetProjectIssuesAction(and callers) to optionally addfield_issue_categoryto the API query. - Adds
--categorytoproject:issuesand exposes an optionalcategoryparameter via MCPToolRegistry.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/src/Action/Project/GetProjectIssuesActionTest.php | Adds coverage to assert the category parameter is included/omitted in the issue query params. |
| src/Cli/Command/Project/ProjectIssues.php | Adds --category CLI option and forwards it to the action via the new enum. |
| src/Api/Mcp/ToolRegistry.php | Extends MCP project_get_issues tool with an optional category argument and enum conversion. |
| src/Api/Enum/ProjectIssueCategory.php | New enum representing issue categories and mapping them to Drupal.org numeric IDs. |
| src/Api/Action/Project/GetProjectIssuesAction.php | Accepts optional category and conditionally adds field_issue_category to the REST request params. |
| skills/drupalorg-cli/SKILL.md | Documents --category usage for project:issues in the agent skill docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
project:issuesonly supported filtering by workflow status (RTBC, needs review, etc.) with no way to scope by issue type (bug, task, feature request, support, plan), limiting common workflows like triaging open bugs or auditing support queue.Changes
ProjectIssueCategoryenum — string-backed (bug,task,feature,support,plan) with acategoryId()method mapping to Drupal.org'sfield_issue_categoryinteger values (1–5)GetProjectIssuesAction— accepts optional?ProjectIssueCategory $category; addsfield_issue_categoryto the API query only when set (backwards-compatible)project:issuescommand — new--categoryoption forwarded to the actionToolRegistry::projectGetIssues()— optional$categorystring parameter with enum annotation for MCP toolingUsage
Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.