View as Markdown
GitHub icon

GitHub ACTION

Search Issues and Pull Requests

Search issues and pull requests across GitHub using the issues-search query DSL. This is the escape hatch for finding items by keyword, state, label, author, or assignee when you don't already know the issue/PR number. Build the query from space-separated qualifiers: repo:owner/name to scope to one repo (a bare repo:name with no owner is auto-resolved to your own account), is:issue/is:pr, is:open/is:closed, label:bug, author:octocat, assignee:octocat, in:title/in:body, and free-text keywords. Example: repo:PipedreamHQ/pipedream is:issue is:open label:bug raptor. Returns matching items (each with number, title, state, labels, html_url); feed a result's number into Get Issue, Get Pull Request, or Create Issue Comment. See the query syntax
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's GitHub account once, then configure and run Search Issues and Pull Requests from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "github-search-issues-and-pull-requests",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    github: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    maxResults: 10,
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Search Issues and Pull Requests inputs
Property Type Description
query Query string
The search query built from keywords and qualifiers. Example: repo:PipedreamHQ/pipedream is:pr is:open sort:updated-desc. See the documentation for the full qualifier list.
Required
maxResults Maximum Results integer
The maximum number of items to retrieve. Defaults to 30.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
github-search-issues-and-pull-requests
Version
0.3.3
App
GitHub
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes