diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index 463ac4408f10..7a4715d87568 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -1023,10 +1023,10 @@ func (s *Source) scanComments(ctx context.Context, repoPath string, chunksChan c } } } - return s.handleComments(ctx, repoPath, trimmedURL, repoURL, chunksChan) + return s.processRepoComments(ctx, repoPath, trimmedURL, repoURL, chunksChan) } -func (s *Source) handleComments(ctx context.Context, repoPath string, trimmedURL []string, repoURL *url.URL, chunksChan chan *sources.Chunk) error { +func (s *Source) processRepoComments(ctx context.Context, repoPath string, trimmedURL []string, repoURL *url.URL, chunksChan chan *sources.Chunk) error { // Normal repository URL (https://github.com//). if len(trimmedURL) < 3 { return fmt.Errorf("url missing owner and/or repo: '%s'", repoURL.String())