Skip to content

Commit 1f502fd

Browse files
authored
feat(github): scan issue & pr titles (#1899)
1 parent 0e6e1dc commit 1f502fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/sources/github/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ func (s *Source) chunkIssues(ctx context.Context, repoInfo repoInfo, issues []*g
13561356
},
13571357
},
13581358
},
1359-
Data: []byte(sanitizer.UTF8(issue.GetBody())),
1359+
Data: []byte(sanitizer.UTF8(issue.GetTitle() + issue.GetBody())),
13601360
Verify: s.verify,
13611361
}
13621362

@@ -1455,7 +1455,7 @@ func (s *Source) chunkPullRequests(ctx context.Context, repoInfo repoInfo, prs [
14551455
},
14561456
},
14571457
},
1458-
Data: []byte(sanitizer.UTF8(pr.GetBody())),
1458+
Data: []byte(sanitizer.UTF8(pr.GetTitle() + pr.GetBody())),
14591459
Verify: s.verify,
14601460
}
14611461

0 commit comments

Comments
 (0)