Search Issues and Pull Requests

Searches for issues and pull requests

Usage #

// Import the typed helper
import { searchIssues } from "@hotglue/sdk/github";
const result = await client.execute({
...searchIssues({
q: string,
sort: string,
order: string,
// ...
}),
userId: "user_123",
});
// result is typed as SearchIssuesOutput
const result = await client.execute({
integration: "github",
tool: "search_issues",
userId: "user_123",
input: {
q: string,
sort: string,
order: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the Search Issues and Pull Requests tool");

Input Schema #

q string required

Search query

sort string

Sort results

values: comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, updated
order string
default: desc values: asc, desc
per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/search/issues