Skip to content

Commit

Permalink
Merge pull request #1564 from jenkins-x/skipmissingrepo
Browse files Browse the repository at this point in the history
fix: skip repo that can't queried
  • Loading branch information
jenkins-x-bot authored Aug 4, 2023
2 parents a072a17 + 23d6c19 commit e96de94
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 e96de94

Please sign in to comment.