d4x1 commented on code in PR #7716:
URL: 
https://github.com/apache/incubator-devlake/pull/7716#discussion_r1673412026


##########
backend/plugins/github_graphql/tasks/pr_collector.go:
##########
@@ -160,6 +185,7 @@ func CollectPrs(taskCtx plugin.SubTaskContext) errors.Error 
{
                                "owner":      graphql.String(ownerName[0]),
                                "name":       graphql.String(ownerName[1]),
                        }
+                       fmt.Println(query)

Review Comment:
   It' should be deleted.



##########
backend/plugins/github_graphql/tasks/pr_collector.go:
##########
@@ -85,8 +86,32 @@ type GraphqlQueryPr struct {
                TotalCount graphql.Int
                Nodes      []GraphqlQueryReview `graphql:"nodes"`
        } `graphql:"reviews(first: 100)"`
+       MergedBy       *GraphqlInlineAccountQuery
+       ReviewRequests struct {
+               Nodes []ReviewRequestNode `graphql:"nodes"`
+       } `graphql:"reviewRequests(first: 10)"`
 }
 
+type ReviewRequestNode struct {
+       RequestedReviewer RequestedReviewer `graphql:"requestedReviewer"`
+}
+
+type RequestedReviewer struct {
+       User User `graphql:"... on User"`
+       Team Team `graphql:"... on Team"`
+}
+
+type User struct {
+       Id    int    `graphql:"databaseId"`
+       Login string `graphql:"login"`
+       Name  string `graphql:"name"`
+}
+
+type Team struct {
+       Id   int    `graphql:"databaseId"`
+       Name string `graphql:"name"`
+       Slug string `graphql:"slug"`
+}

Review Comment:
   There should be an empty line.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to