Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GraphQL Branch and Commit Queries by Repository
query getCommitsByBranchByRepo($org:String!,$repo:String!) {
organization(login:$org) {
name
repository(name:$repo) {
name
refs(refPrefix: "refs/heads/", first: 10) {
nodes {
id
name
target {
... on Commit {
history(first: 100) {
nodes {
messageHeadline
committedDate
author {
name
email
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.