File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ var CollectApiPullRequestsMeta = plugin.SubTaskMeta{
4444}
4545
4646type SimpleGithubPr struct {
47- GithubId int64
47+ Number int64
4848}
4949
5050type SimpleGithubApiPr struct {
@@ -102,7 +102,7 @@ func CollectApiPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
102102 BuildInputIterator : func () (helper.Iterator , errors.Error ) {
103103 // select pull id from database
104104 cursor , err := db .Cursor (
105- dal .Select ("github_id " ),
105+ dal .Select ("number " ),
106106 dal .From (& models.GithubPullRequest {}),
107107 dal .Where (
108108 "repo_id = ? AND connection_id = ? AND state != 'closed'" ,
@@ -115,7 +115,7 @@ func CollectApiPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
115115 return helper .NewDalCursorIterator (db , cursor , reflect .TypeOf (SimpleGithubPr {}))
116116 },
117117 FinalizableApiCollectorCommonArgs : helper.FinalizableApiCollectorCommonArgs {
118- UrlTemplate : "repos/{{ .Params.Name }}/pulls/{{ .Input.GithubId }}" ,
118+ UrlTemplate : "repos/{{ .Params.Name }}/pulls/{{ .Input.Number }}" ,
119119 ResponseParser : func (res * http.Response ) ([]json.RawMessage , errors.Error ) {
120120 body , err := io .ReadAll (res .Body )
121121 if err != nil {
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ func CollectGraphqlJobs(taskCtx plugin.SubTaskContext) errors.Error {
140140
141141 err = collectorWithState .InitGraphQLCollector (helper.GraphqlCollectorArgs {
142142 Input : iterator ,
143- InputStep : 60 ,
143+ InputStep : 20 ,
144144 Incremental : incremental ,
145145 GraphqlClient : data .GraphqlClient ,
146146 BuildQuery : func (reqData * helper.GraphqlRequestData ) (interface {}, map [string ]interface {}, error ) {
You can’t perform that action at this time.
0 commit comments