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(
|
async function listIssues(
|
||||||
owner: string,
|
owner: string,
|
||||||
repo: string,
|
repo: string,
|
||||||
options: z.infer<typeof ListIssuesOptionsSchema>
|
options: Omit<z.infer<typeof ListIssuesOptionsSchema>, 'owner' | 'repo'>
|
||||||
): Promise<GitHubIssue[]> {
|
): Promise<GitHubIssue[]> {
|
||||||
const url = new URL(`https://api.github.com/repos/${owner}/${repo}/issues`);
|
const url = new URL(`https://api.github.com/repos/${owner}/${repo}/issues`);
|
||||||
|
|
||||||
|
|
@ -505,7 +505,7 @@ async function updateIssue(
|
||||||
owner: string,
|
owner: string,
|
||||||
repo: string,
|
repo: string,
|
||||||
issueNumber: number,
|
issueNumber: number,
|
||||||
options: z.infer<typeof UpdateIssueOptionsSchema>
|
options: Omit<z.infer<typeof UpdateIssueOptionsSchema>, 'owner' | 'repo' | 'issue_number'>
|
||||||
): Promise<GitHubIssue> {
|
): Promise<GitHubIssue> {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`,
|
`https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue