Skip to content

Commit

Permalink
feat(github): scan issue & pr titles (trufflesecurity#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz authored Nov 23, 2023
1 parent 0e6e1dc commit 1f502fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sources/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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,
}

Expand Down

0 comments on commit 1f502fd

Please sign in to comment.