Skip to content

Commit

Permalink
improve copy
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairk14 committed Aug 16, 2023
1 parent c28b1c2 commit 2be7835
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions pkg/engine/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2be7835

Please sign in to comment.