We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8016e36 commit cfd6136Copy full SHA for cfd6136
src/github/operations/issues.ts
@@ -87,8 +87,18 @@ export async function listIssues(
87
repo: string,
88
options: Omit<z.infer<typeof ListIssuesOptionsSchema>, "owner" | "repo">
89
) {
90
+ const urlParams: Record<string, string | undefined> = {
91
+ direction: options.direction,
92
+ labels: options.labels?.join(","),
93
+ page: options.page?.toString(),
94
+ per_page: options.per_page?.toString(),
95
+ since: options.since,
96
+ sort: options.sort,
97
+ state: options.state
98
+ };
99
+
100
return githubRequest(
- buildUrl(`https://api.github.com/repos/${owner}/${repo}/issues`, options)
101
+ buildUrl(`https://api.github.com/repos/${owner}/${repo}/issues`, urlParams)
102
);
103
}
104
0 commit comments