Skip to content

Commit

Permalink
fix: skip repo that can't queried
Browse files Browse the repository at this point in the history
fixes #1116
  • Loading branch information
msvticket committed Aug 4, 2023
1 parent a072a17 commit 23d6c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,8 @@ func restAPISearch(spc scmProviderClient, log *logrus.Entry, queries keeper.Quer

prs, err := spc.ListAllPullRequestsForFullNameRepo(repo, searchOpts)
if err != nil {
return nil, errors.Wrapf(err, "listing all open pull requests for %s", repo)
log.WithError(err).Warnf("listing all open pull requests for %s failed, skipping repository", repo)
continue
}

var repoData *scm.Repository
Expand Down

0 comments on commit 23d6c19

Please sign in to comment.