feat(plugins/notable): add issues, prs and relative stars badges (#841)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
query NotableContributions {
|
||||
user(login: "$login") {
|
||||
repositoriesContributedTo($after first: $repositories, contributionTypes: COMMIT, orderBy: { field: STARGAZERS, direction: DESC }) {
|
||||
repositoriesContributedTo($after first: $repositories, contributionTypes: [$types], orderBy: { field: STARGAZERS, direction: DESC }) {
|
||||
edges {
|
||||
cursor
|
||||
node {
|
||||
@@ -19,6 +19,12 @@ query NotableContributions {
|
||||
stargazers {
|
||||
totalCount
|
||||
}
|
||||
issues {
|
||||
totalCount
|
||||
}
|
||||
pullRequests {
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
source/plugins/notable/queries/issues.graphql
Normal file
15
source/plugins/notable/queries/issues.graphql
Normal file
@@ -0,0 +1,15 @@
|
||||
query NotableIssues {
|
||||
user(login: "$login") {
|
||||
$type($after first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {
|
||||
totalCount
|
||||
edges {
|
||||
cursor
|
||||
node {
|
||||
repository {
|
||||
nameWithOwner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user