Skip to content

Commit 506eaba

Browse files
committed
fix: update listIssues and updateIssue function signatures
1 parent f8158a6 commit 506eaba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ async function createRepository(
473473
async function listIssues(
474474
owner: string,
475475
repo: string,
476-
options: z.infer<typeof ListIssuesOptionsSchema>
476+
options: Omit<z.infer<typeof ListIssuesOptionsSchema>, 'owner' | 'repo'>
477477
): Promise<GitHubIssue[]> {
478478
const url = new URL(`https://api.github.com/repos/${owner}/${repo}/issues`);
479479

@@ -505,7 +505,7 @@ async function updateIssue(
505505
owner: string,
506506
repo: string,
507507
issueNumber: number,
508-
options: z.infer<typeof UpdateIssueOptionsSchema>
508+
options: Omit<z.infer<typeof UpdateIssueOptionsSchema>, 'owner' | 'repo' | 'issue_number'>
509509
): Promise<GitHubIssue> {
510510
const response = await fetch(
511511
`https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`,

0 commit comments

Comments
 (0)