feat: add project:search command and drupalorg-issue-search skill#318
Open
andyg5000 wants to merge 1 commit intomglaman:mainfrom
Open
feat: add project:search command and drupalorg-issue-search skill#318andyg5000 wants to merge 1 commit intomglaman:mainfrom
andyg5000 wants to merge 1 commit intomglaman:mainfrom
Conversation
Add a new `project:search` (alias `ps`) command that searches a project's issues by title keyword, with status filtering and all output formats. Includes the Action class, CLI command, MCP tool registration, and a new `/drupalorg-issue-search` skill that combines API search, Drupal.org issue queue scraping, and web search for comprehensive results. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
Here's an example of this working for a commerce stripe issue I'm familiar with. I've realized we probably want to add more filters for branch, component, etc... Let' me know your feels on the overall approach, including if you think we'd be spamming d.o with the web scrape flag and I'll update the MR. |
mglaman
reviewed
Mar 13, 2026
Owner
mglaman
left a comment
There was a problem hiding this comment.
Some projects are migrating to Gitlab issues. I don't think there's anyway to detect that. Can be a follow up for support, but that would fix searching.
| use Symfony\Component\Console\Input\InputOption; | ||
| use Symfony\Component\Console\Output\OutputInterface; | ||
|
|
||
| class ProjectSearch extends ProjectCommandBase |
Comment on lines
+42
to
+46
| $issues = array_filter( | ||
| $issues, | ||
| static fn(IssueNode $issue) => stripos($issue->title, $query) !== false | ||
| ); | ||
| $issues = array_slice(array_values($issues), 0, $limit); |
Owner
There was a problem hiding this comment.
I forgot about https://www.drupal.org/project/restws/issues/2392183 and that the API doesn't really have search capabilities.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New command: project:search (ps) — searches a project's issues by title keyword with --status filtering (all/open/closed/rtbc/review, defaults to all)
New skill: /drupalorg-issue-search — combines three search channels:
Supports --skip=api,drupal,web to selectively disable channels, --project and --status flags.
Other changes: MCP tool registration, CLAUDE.md updates, skill install support.