fix: update listIssues and updateIssue function signatures
This commit is contained in:
parent
f8158a69be
commit
506eabab39
1 changed files with 2 additions and 2 deletions
|
|
@ -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`);
|
||||
|
||||
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue