Refactor GitHub source (#2379)

* refactor(github): cleanup logic

* fix(github): lookup wikis per-repo

* refactor(github): change scanErrs.String output

---------

Co-authored-by: Bill Rich <bill.rich@gmail.com>
This commit is contained in:
Richard Gomez
2024-03-21 14:07:39 -07:00
committed by GitHub
co-authored by Bill Rich
parent eb0d4ae5d2
commit 80e8a67c2d
5 changed files with 395 additions and 427 deletions
@@ -53,11 +53,11 @@ func TestSource_Token(t *testing.T) {
}
s := Source{
conn: conn,
httpClient: common.SaneHttpClient(),
log: logr.Discard(),
memberCache: map[string]struct{}{},
repoSizes: newRepoSize(),
conn: conn,
httpClient: common.SaneHttpClient(),
log: logr.Discard(),
memberCache: map[string]struct{}{},
repoInfoCache: newRepoInfoCache(),
}
s.filteredRepoCache = s.newFilteredRepoCache(memory.New(), nil, nil)