From 2be783585b61a518c46b825d02cad61240a70209 Mon Sep 17 00:00:00 2001 From: Zubair Khan Date: Wed, 16 Aug 2023 17:48:43 -0400 Subject: [PATCH] improve copy --- pkg/engine/github.go | 16 ++++++++-------- pkg/sources/github/github.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/engine/github.go b/pkg/engine/github.go index 0bfe26de63d2..4e83acbdd208 100644 --- a/pkg/engine/github.go +++ b/pkg/engine/github.go @@ -15,15 +15,15 @@ import ( // ScanGitHub scans Github with the provided options. func (e *Engine) ScanGitHub(ctx context.Context, c sources.GithubConfig) error { connection := sourcespb.GitHub{ - Endpoint: c.Endpoint, - Organizations: c.Orgs, - Repositories: c.Repos, - ScanUsers: c.IncludeMembers, - IgnoreRepos: c.ExcludeRepos, - IncludeRepos: c.IncludeRepos, - IncludeIssueComments: c.IncludeIssueComments + Endpoint: c.Endpoint, + Organizations: c.Orgs, + Repositories: c.Repos, + ScanUsers: c.IncludeMembers, + IgnoreRepos: c.ExcludeRepos, + IncludeRepos: c.IncludeRepos, + IncludeIssueComments: c.IncludeIssueComments, IncludePullRequestComments: c.IncludePullRequestComments, - IncludeGistComments: c.IncludeGistComments, + IncludeGistComments: c.IncludeGistComments, } if len(c.Token) > 0 { connection.Credential = &sourcespb.GitHub_Token{ diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index 34d6358c6ce8..dea631e5cb42 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -1071,7 +1071,7 @@ func (s *Source) scanComments(ctx context.Context, repoPath string, chunksChan c } if s.includePRComments { - s.log.Info("scanning PR comments", "repository", repoPath) + s.log.Info("scanning github pull request comments", "repository", repoPath) prOpts := &github.PullRequestListCommentsOptions{ Sort: sortType,