Skip to content

Commit

Permalink
Remove unused query fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Dec 16, 2024
1 parent b255133 commit e9ab39c
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions internal/gh/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,12 @@ type userPullRequestsQueryEdge struct {
Cursor githubv4.String
Node struct {
PullRequest struct {
Title githubv4.String
State githubv4.String
Number githubv4.Int
Url githubv4.String
Additions githubv4.Int
Deletions githubv4.Int
Comments struct {
TotalCount githubv4.Int
}
Reviews struct {
TotalCount githubv4.Int
}
Title githubv4.String
State githubv4.String
Number githubv4.Int
Url githubv4.String
Additions githubv4.Int
Deletions githubv4.Int
CreatedAt githubv4.DateTime
ClosedAt githubv4.DateTime
Repository userPullRequestsQueryRepository
Expand Down Expand Up @@ -323,7 +317,6 @@ func (q *userPullRequestsQuery) toUserPullRequests() *UserPullRequests {
Url: string(pn.Url),
Additions: int(pn.Additions),
Deletions: int(pn.Deletions),
Comments: int(pn.Comments.TotalCount),
CretaedAt: pn.CreatedAt.Time,
ClosedAt: pn.ClosedAt.Time,
}
Expand Down

0 comments on commit e9ab39c

Please sign in to comment.