MCPcopy Index your code
hub / github.com/stefanbuck/awesome-browser-extensions-for-github / getGraphqlQuery

Function getGraphqlQuery

update.js:28–36  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

26}
27
28function getGraphqlQuery(list) {
29 const innerQuery = list.map(({ name, url }, index) => {
30 const [, , , owner, repo] = url.split('/');
31
32 return getQuery(index, owner, repo)
33 }).join('\n')
34
35 return `query { ${innerQuery} }`
36}
37
38async function updateGitHubStats() {
39 const result = await graphqlGot('https://api.github.com/graphql', {

Callers 1

updateGitHubStatsFunction · 0.85

Calls 1

getQueryFunction · 0.85

Tested by

no test coverage detected