Remove ownerAffiliations: OWNER constraint and add option to include forks (#61)

This commit is contained in:
Simon Lecoq
2021-01-14 13:33:46 +01:00
committed by GitHub
parent 9632f5faf6
commit c34e73fa68
19 changed files with 64 additions and 45 deletions

View File

@@ -8,7 +8,7 @@ query Metrics {
websiteUrl
isHireable
twitterUsername
repositories(last: 0, isFork: false, ownerAffiliations: OWNER) {
repositories(last: 0 $forks) {
totalCount
totalDiskUsage
nodes {

View File

@@ -1,11 +1,15 @@
query Repositories {
user(login: "$login") {
repositories($after first: $repositories, isFork: false, ownerAffiliations: OWNER, orderBy: {field: UPDATED_AT, direction: DESC}) {
repositories($after first: $repositories $forks, orderBy: {field: UPDATED_AT, direction: DESC}) {
edges {
cursor
}
nodes {
name
owner {
login
}
isFork
watchers {
totalCount
}

View File

@@ -2,6 +2,10 @@ query Repository {
user(login: "$login") {
repository(name: "$repo") {
name
owner {
login
}
isFork
createdAt
diskUsage
homepageUrl

View File

@@ -14,6 +14,7 @@ query Starred {
openGraphImageUrl
licenseInfo {
nickname
spdxId
name
}
pullRequests {