2019-12-13 16:44:49 +01:00
|
|
|
fragment T on Ref {
|
|
|
|
target {
|
2020-01-02 14:31:58 +01:00
|
|
|
__typename
|
2019-12-13 16:44:49 +01:00
|
|
|
... on Commit {
|
|
|
|
oid
|
|
|
|
url
|
|
|
|
messageHeadline
|
|
|
|
committedDate
|
|
|
|
author {
|
|
|
|
name
|
|
|
|
avatarUrl
|
|
|
|
user {
|
|
|
|
login
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# status {
|
|
|
|
# state
|
|
|
|
# }
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|