Add achievements plugin support for organization account (#230)

This commit is contained in:
Simon Lecoq
2021-04-13 13:46:45 +02:00
committed by GitHub
parent 5cb4bb6c28
commit 71381132aa
10 changed files with 509 additions and 268 deletions

View File

@@ -91,5 +91,8 @@ query AchievementsDefault {
status {
message
}
sponsorshipsAsSponsor {
totalCount
}
}
}

View File

@@ -0,0 +1,37 @@
query AchievementsOrganizations {
organization(login: "$login") {
repositories(first: 1, privacy: PUBLIC, affiliations: OWNER, orderBy: {field: CREATED_AT, direction: ASC}) {
nodes {
createdAt
nameWithOwner
}
totalCount
}
forks:repositories(first: 1, privacy: PUBLIC, isFork: true, orderBy: {field: CREATED_AT, direction: ASC}) {
nodes {
createdAt
nameWithOwner
}
totalCount
}
popular:repositories(first:1, orderBy: {field: STARGAZERS, direction: DESC}) {
nodes {
stargazers {
totalCount
}
}
}
projects(first: 1, orderBy: {field: CREATED_AT, direction: ASC}) {
totalCount
}
packages(first: 1, orderBy: {direction: ASC, field: CREATED_AT}) {
totalCount
}
membersWithRole {
totalCount
}
sponsorshipsAsSponsor {
totalCount
}
}
}