klesh commented on code in PR #6876:
URL:
https://github.com/apache/incubator-devlake/pull/6876#discussion_r1467173437
##########
backend/plugins/github/tasks/cicd_run_collector.go:
##########
@@ -80,7 +75,9 @@ func CollectRuns(taskCtx plugin.SubTaskContext) errors.Error {
UrlTemplate: "repos/{{ .Params.Name
}}/actions/runs",
Query: func(reqData *helper.RequestData,
createdAfter *time.Time) (url.Values, errors.Error) {
query := url.Values{}
- query.Set("status", "completed")
+ // github api bug, only collect page <
35 data, otherwise will get nil response
Review Comment:
GitHub API returns only the first 34 pages (with a size of 30) when
specifying `status=compleleted`, try the following API request to verify the
problem.
--
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]