mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-01 11:57:37 -05:00
39 lines
722 B
GraphQL
39 lines
722 B
GraphQL
# import './fragments.graphql'
|
|
|
|
fragment RepoPartsWithTime on Repository {
|
|
...RepoParts
|
|
updatedAt
|
|
}
|
|
query Repos($login: String!, $after: String) {
|
|
repositoryOwner(login: $login) {
|
|
repositories(
|
|
first: 30
|
|
after: $after
|
|
orderBy: { field: UPDATED_AT, direction: DESC }
|
|
) {
|
|
pageInfo {
|
|
...PageInfoParts
|
|
}
|
|
nodes {
|
|
...RepoPartsWithTime
|
|
}
|
|
}
|
|
}
|
|
}
|
|
query Stars($login: String!, $after: String) {
|
|
user(login: $login) {
|
|
starredRepositories(
|
|
first: 30
|
|
after: $after
|
|
orderBy: { field: STARRED_AT, direction: DESC }
|
|
) {
|
|
pageInfo {
|
|
...PageInfoParts
|
|
}
|
|
nodes {
|
|
...RepoPartsWithTime
|
|
}
|
|
}
|
|
}
|
|
}
|