Last active
February 13, 2019 22:29
-
-
Save Hollywood/370bcd3eda04213e2bf8b2ae9fa7021b to your computer and use it in GitHub Desktop.
commits-by-branch-and-repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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 | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment