mirror of
https://github.com/git-touch/git-touch
synced 2024-12-21 04:23:59 +01:00
61 lines
957 B
GraphQL
61 lines
957 B
GraphQL
fragment T on Ref {
|
|
target {
|
|
__typename
|
|
... 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 GhCommits(
|
|
$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
|
|
}
|
|
}
|
|
}
|