-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.js
43 lines (43 loc) · 1.13 KB
/
site.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
title: `Gatsby Starter Github API`,
description: `Kick off your next, great Gatsby project with this Github source starter.`,
author: `@lundgren2`,
siteUrl: `https://gatsby-starter-github-api.netlify.com`,
githubApiToken: process.env.GITHUB_API_TOKEN,
githubApiQuery: `query ($number_of_repos: Int!) {
viewer {
name
avatarUrl
isHireable
resourcePath
repositories(last: $number_of_repos, privacy: PUBLIC, orderBy: { field: STARGAZERS, direction:ASC } ) {
nodes {
name
description
homepageUrl
forkCount
createdAt
updatedAt
resourcePath
languages(last: 1, orderBy: { field: SIZE, direction:ASC } ) {
edges {
node {
name
color
}
}
}
licenseInfo {
name
}
stargazers {
totalCount
}
}
}
}
}`,
githubApiVariables: {
number_of_repos: 12,
},
}