MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / fetchClosedIssues

Function fetchClosedIssues

services/githubService.js:209–231  ·  view source on GitHub ↗
(params = {})

Source from the content-addressed store, hash-verified

207};
208
209const fetchClosedIssues = async (params = {}) => {
210 const { perPage = 100, page = 1, searchParams = {}, resultOptions = {} } = params;
211
212 try {
213 const url = getGithubURL(
214 {
215 type: "issue",
216 is: "closed",
217 ...searchParams,
218 },
219 {
220 sort: "updated",
221 ...resultOptions,
222 per_page: perPage,
223 page,
224 }
225 );
226 return getFetch(url);
227 } catch (err) {
228 logger.error(`Error while fetching closed issues: ${err}`);
229 throw err;
230 }
231};
232
233/**
234 * Fetches issues across all repositories in the ORG

Callers

nothing calls this directly

Calls 2

getGithubURLFunction · 0.85
getFetchFunction · 0.85

Tested by

no test coverage detected