Skip to content

Commit 5b1a4c3

Browse files
author
Jon Cardona
authored
Create branches-and-commits-by-repository.graphql
1 parent 0ca0b7c commit 5b1a4c3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
query getCommitsByBranchByRepo($org:String!, $repo:String!) {
2+
organization(login:$org) {
3+
name
4+
repository(name:$repo) {
5+
name
6+
refs(refPrefix: "refs/heads/", first: 10) {
7+
nodes {
8+
id
9+
name
10+
target {
11+
... on Commit {
12+
history(first: 100) {
13+
nodes {
14+
messageHeadline
15+
committedDate
16+
author {
17+
name
18+
email
19+
}
20+
}
21+
pageInfo {
22+
hasNextPage
23+
endCursor
24+
}
25+
}
26+
}
27+
}
28+
}
29+
pageInfo {
30+
hasNextPage
31+
endCursor
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)