Skip to content

Commit

Permalink
Reset the search builder object in SearchByReviewersPRsSource for eve…
Browse files Browse the repository at this point in the history
…ry username (#246)
  • Loading branch information
bbaga authored Jan 9, 2023
1 parent 55bd6c0 commit ff2f944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ build/

### .env ###
.env

### keys ###
**/*.key
**/*.der
**/*.pem
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ private void findIssues(
List<String> searchSubjects,
String queryTemplate
) {
SearchIssueBuilder builder = SearchIssueBuilder.from(client.searchIssues());

for (String subject : searchSubjects) {
SearchIssueBuilder builder = SearchIssueBuilder.from(client.searchIssues());
builder.query(String.format(queryTemplate, repo.getFullName(), subject))
.forEach((GHIssue issue) -> this.processIssue(repo, issues, issue));
}
Expand Down

0 comments on commit ff2f944

Please sign in to comment.