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

Function fetchMergedPRs

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

Source from the content-addressed store, hash-verified

157};
158
159const fetchMergedPRs = async (params = {}) => {
160 const { perPage = 100, page = 1, searchParams = {}, resultOptions = {} } = params;
161
162 try {
163 const url = getGithubURL(
164 {
165 type: "pr",
166 is: "merged",
167 ...searchParams,
168 },
169 {
170 sort: "updated",
171 ...resultOptions,
172 per_page: perPage,
173 page,
174 }
175 );
176
177 return getFetch(url);
178 } catch (err) {
179 logger.error(`Error while fetching closed pull requests: ${err}`);
180 throw err;
181 }
182};
183
184const fetchOpenIssues = async (params = {}) => {
185 const { perPage = 100, page = 1, searchParams = {}, resultOptions = {}, searchString = "" } = params;

Callers

nothing calls this directly

Calls 2

getGithubURLFunction · 0.85
getFetchFunction · 0.85

Tested by

no test coverage detected