MCPcopy Index your code
hub / github.com/utterance/utterances / loadCommentsPage

Function loadCommentsPage

src/github.ts:179–187  ·  view source on GitHub ↗
(issueNumber: number, page: number)

Source from the content-addressed store, hash-verified

177}
178
179export function loadCommentsPage(issueNumber: number, page: number): Promise<IssueComment[]> {
180 const request = commentsRequest(issueNumber, page);
181 return githubFetch(request).then(response => {
182 if (!response.ok) {
183 throw new Error('Error fetching comments.');
184 }
185 return response.json();
186 });
187}
188
189export function loadUser(): Promise<User | null> {
190 if (token.value === null) {

Callers 2

renderCommentsFunction · 0.90
loadFunction · 0.90

Calls 2

commentsRequestFunction · 0.85
githubFetchFunction · 0.85

Tested by

no test coverage detected