feat(plugins/repositories): add options for starred/random repositories (#1179)

This commit is contained in:
Simon Lecoq
2022-08-07 17:05:21 +02:00
committed by GitHub
parent 628071042b
commit 63c194924c
6 changed files with 157 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
query RepositoriesRandom {
user(login: "$login") {
repositories(
orderBy: {field: UPDATED_AT, direction: DESC}
first: 100
privacy: PUBLIC
$affiliations
) {
nodes {
nameWithOwner
}
}
}
}

View File

@@ -0,0 +1,14 @@
query RepositoriesStarred {
user(login: "$login") {
repositories(
orderBy: {field: STARGAZERS, direction: DESC}
first: $limit
privacy: PUBLIC
$affiliations
) {
nodes {
nameWithOwner
}
}
}
}