Skip to content

Commit

Permalink
Create branches-and-commits-by-repository.graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Cardona authored Mar 5, 2019
1 parent 0ca0b7c commit 5b1a4c3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions graphql/queries/branches-and-commits-by-repository.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
}
}
}
}
}

0 comments on commit 5b1a4c3

Please sign in to comment.