Skip to content

Commit 1a7128b

Browse files
committed
[Regenerate] Add method: getRepositoryIssue
1 parent 2678b1f commit 1a7128b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Repository.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ export function getRepository(
2323
return request(`/repos/${owner}/${repo}`, params, "GET", options);
2424
}
2525

26+
type getRepositoryIssueParams = {
27+
}
28+
29+
export function getRepositoryIssue(
30+
owner: string = required("owner"),
31+
repo: string = required("repo"),
32+
id: number = required("id"),
33+
params: getRepositoryIssueParams,
34+
options?: FetchOptions
35+
): Promise<RepositoryEntity> {
36+
return request(`/repos/${owner}/${repo}/issues/${id}`, params, "GET", options);
37+
}
38+
2639
type getRepositoryCollaboratorsParams = {
2740
}
2841

0 commit comments

Comments
 (0)