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

Function getFetch

services/githubService.js:90–97  ·  view source on GitHub ↗

Create the fetch object to call on github url * @access private * @param url {string} - URL on github to call

(url)

Source from the content-addressed store, hash-verified

88 * @param url {string} - URL on github to call
89 */
90function getFetch(url) {
91 return utils.fetch(url, "get", null, null, null, {
92 auth: {
93 username: config.get("githubOauth.clientId"),
94 password: config.get("githubOauth.clientSecret"),
95 },
96 });
97}
98
99/**
100 * Create fetch call for GitHub APIs as an authenticated user

Callers 5

fetchPRsByUserFunction · 0.85
fetchOpenPRsFunction · 0.85
fetchMergedPRsFunction · 0.85
fetchOpenIssuesFunction · 0.85
fetchClosedIssuesFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected