refactor: issue and pull item

This commit is contained in:
Rongjian Zhang
2020-01-28 23:19:05 +08:00
parent 5f502ae29e
commit 8012ea6544
10 changed files with 2592 additions and 74 deletions

View File

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