Skip to content

Commit

Permalink
Merge branch 'main' into feat-gerrit
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Jun 17, 2024
2 parents 405f875 + 208fa7f commit 300bee3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/plugins/bitbucket_server/tasks/pr_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ var CollectApiPullRequestsMeta = plugin.SubTaskMeta{

func CollectApiPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
rawDataSubTaskArgs, data := CreateRawDataSubTaskArgs(taskCtx, RAW_PULL_REQUEST_TABLE)
collectorWithState, err := helper.NewStatefulApiCollector(*rawDataSubTaskArgs)
if err != nil {
return err
}

err = collectorWithState.InitCollector(helper.ApiCollectorArgs{
collector, err := helper.NewApiCollector(helper.ApiCollectorArgs{
RawDataSubTaskArgs: *rawDataSubTaskArgs,
ApiClient: data.ApiClient,
PageSize: 100,
Expand All @@ -57,5 +53,5 @@ func CollectApiPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
return err
}

return collectorWithState.Execute()
return collector.Execute()
}

0 comments on commit 300bee3

Please sign in to comment.