Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use cursor-based sync for dependabot
  • Loading branch information
candiduslynx committed Mar 31, 2023
commit 5862df64ab37c917baad4310c05d079aac59c0ca
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func fetchAlerts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource
}
res <- alerts
opts.After = resp.After
if resp.After == "" {
if len(opts.After) == 0 {
Comment thread
candiduslynx marked this conversation as resolved.
Outdated
break
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package repositories

import (
"context"
"strconv"

"github.com/cloudquery/cloudquery/plugins/source/github/client"
"github.com/cloudquery/plugin-sdk/schema"
Expand Down Expand Up @@ -30,8 +29,8 @@ func fetchAlerts(ctx context.Context, meta schema.ClientMeta, parent *schema.Res
return err
}
res <- alerts
opts.Page = strconv.FormatInt(int64(resp.NextPage), 10)
if resp.NextPage == 0 {
opts.After = resp.After
if len(resp.After) == 0 {
Comment thread
candiduslynx marked this conversation as resolved.
break
}
}
Expand Down