From bac45ccf2315aca0156ef47e2d827c4e83d731b4 Mon Sep 17 00:00:00 2001 From: Richard Gomez Date: Tue, 17 Oct 2023 19:17:49 -0400 Subject: [PATCH] feat(github): scan issue & pr titles --- pkg/sources/github/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index 0cfd3af305eb..2194c35a2dfb 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -1356,7 +1356,7 @@ func (s *Source) chunkIssues(ctx context.Context, repoInfo repoInfo, issues []*g }, }, }, - Data: []byte(sanitizer.UTF8(issue.GetBody())), + Data: []byte(sanitizer.UTF8(issue.GetTitle() + issue.GetBody())), Verify: s.verify, } @@ -1455,7 +1455,7 @@ func (s *Source) chunkPullRequests(ctx context.Context, repoInfo repoInfo, prs [ }, }, }, - Data: []byte(sanitizer.UTF8(pr.GetBody())), + Data: []byte(sanitizer.UTF8(pr.GetTitle() + pr.GetBody())), Verify: s.verify, }