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

Function fetchPRsByUser

services/githubService.js:114–126  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

112 */
113
114const fetchPRsByUser = async (username) => {
115 try {
116 const { user } = await fetchUser({ username });
117 const url = getGithubURL({
118 author: user.github_id,
119 type: "pr",
120 });
121 return getFetch(url);
122 } catch (err) {
123 logger.error(`Error while fetching pull requests: ${err}`);
124 throw err;
125 }
126};
127
128/**
129 * Fetches the latest `per_page` open PRs

Callers

nothing calls this directly

Calls 3

fetchUserFunction · 0.85
getGithubURLFunction · 0.85
getFetchFunction · 0.85

Tested by

no test coverage detected