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

Function fetchOpenIssues

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

Source from the content-addressed store, hash-verified

182};
183
184const fetchOpenIssues = async (params = {}) => {
185 const { perPage = 100, page = 1, searchParams = {}, resultOptions = {}, searchString = "" } = params;
186
187 try {
188 const url = getGithubURL(
189 {
190 type: "issue",
191 is: "open",
192 ...searchParams,
193 },
194 {
195 sort: "created",
196 ...resultOptions,
197 per_page: perPage,
198 page,
199 },
200 searchString
201 );
202 return getFetch(url);
203 } catch (err) {
204 logger.error(`Error while fetching open issues: ${err}`);
205 throw err;
206 }
207};
208
209const fetchClosedIssues = async (params = {}) => {
210 const { perPage = 100, page = 1, searchParams = {}, resultOptions = {} } = params;

Callers

nothing calls this directly

Calls 2

getGithubURLFunction · 0.85
getFetchFunction · 0.85

Tested by

no test coverage detected