fix: split to packages to support gql gen

This commit is contained in:
Rongjian Zhang
2022-10-02 00:29:54 +08:00
parent efc2359f27
commit 706d456c46
42 changed files with 939 additions and 74 deletions

View File

@@ -0,0 +1,68 @@
query Issues($owner: String!, $name: String!, $cursor: String) {
repository(owner: $owner, name: $name) {
issues(
states: OPEN
orderBy: { field: CREATED_AT, direction: DESC }
first: 30
after: $cursor
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
number
title
updatedAt
author {
login
avatarUrl
}
labels(first: 10) {
nodes {
name
color
}
}
comments {
totalCount
}
}
}
}
}
## pulls
query Pulls($owner: String!, $name: String!, $cursor: String) {
repository(owner: $owner, name: $name) {
pullRequests(
states: OPEN
orderBy: { field: CREATED_AT, direction: DESC }
first: 30
after: $cursor
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
number
title
updatedAt
author {
login
avatarUrl
}
labels(first: 10) {
nodes {
name
color
}
}
comments {
totalCount
}
}
}
}
}