1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-19 11:43:30 +01:00
git-touch-android-ios-app/lib/graphql/github_commits.graphql
2019-12-13 23:44:49 +08:00

61 lines
961 B
GraphQL

fragment T on Ref {
target {
... on Commit {
oid
url
messageHeadline
committedDate
author {
name
avatarUrl
user {
login
}
}
# status {
# state
# }
__typename
history(first: 30, after: $after) {
pageInfo {
hasNextPage
endCursor
}
nodes {
oid
url
messageHeadline
committedDate
author {
name
avatarUrl
user {
login
}
}
# status {
# state
# }
}
}
}
}
}
query(
$owner: String!
$name: String!
$ref: String!
$hasRef: Boolean!
$after: String
) {
repository(owner: $owner, name: $name) {
defaultBranchRef @skip(if: $hasRef) {
...T
}
ref(qualifiedName: $ref) @include(if: $hasRef) {
...T
}
}
}