Skip to content

Instantly share code, notes, and snippets.

@Hollywood
Last active February 13, 2019 22:29
Show Gist options
  • Save Hollywood/370bcd3eda04213e2bf8b2ae9fa7021b to your computer and use it in GitHub Desktop.
Save Hollywood/370bcd3eda04213e2bf8b2ae9fa7021b to your computer and use it in GitHub Desktop.
commits-by-branch-and-repository
query {
organization (login: "PUT_YOUR_ORG_HERE") {
repository (name: "PUT_YOUR_REPO_NAME_HERE") {
id
name
refs (refPrefix: "refs/heads/", first: 10) {
edges {
node {
id
name
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}
{
organization(login:"PUT_YOUR_ORG_HERE"){
teams(first: 10){
nodes {
name
repositories(first:10){
nodes{
name
# To get a list of valid qualifiedNames, run branches-by-repository query
ref(qualifiedName:"master"){
target{
... on Commit{
history(first:100){
nodes{
messageHeadline
committedDate
author{
name
email
}
}
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment