feat(plugins/repositories): add options for starred/random repositories (#1179)
This commit is contained in:
14
source/plugins/repositories/queries/random.graphql
Normal file
14
source/plugins/repositories/queries/random.graphql
Normal file
@@ -0,0 +1,14 @@
|
||||
query RepositoriesRandom {
|
||||
user(login: "$login") {
|
||||
repositories(
|
||||
orderBy: {field: UPDATED_AT, direction: DESC}
|
||||
first: 100
|
||||
privacy: PUBLIC
|
||||
$affiliations
|
||||
) {
|
||||
nodes {
|
||||
nameWithOwner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
source/plugins/repositories/queries/starred.graphql
Normal file
14
source/plugins/repositories/queries/starred.graphql
Normal file
@@ -0,0 +1,14 @@
|
||||
query RepositoriesStarred {
|
||||
user(login: "$login") {
|
||||
repositories(
|
||||
orderBy: {field: STARGAZERS, direction: DESC}
|
||||
first: $limit
|
||||
privacy: PUBLIC
|
||||
$affiliations
|
||||
) {
|
||||
nodes {
|
||||
nameWithOwner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user