(list)
| 26 | } |
| 27 | |
| 28 | function 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 | |
| 38 | async function updateGitHubStats() { |
| 39 | const result = await graphqlGot('https://api.github.com/graphql', { |
no test coverage detected