Skip to content

Commit

Permalink
fix: update listIssues and updateIssue function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkitree committed Dec 3, 2024
1 parent f8158a6 commit 506eaba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ async function createRepository(
async function listIssues(
owner: string,
repo: string,
options: z.infer<typeof ListIssuesOptionsSchema>
options: Omit<z.infer<typeof ListIssuesOptionsSchema>, 'owner' | 'repo'>
): Promise<GitHubIssue[]> {
const url = new URL(`https://api.github.com/repos/${owner}/${repo}/issues`);

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

0 comments on commit 506eaba

Please sign in to comment.