Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 8e54dfa

Browse files
committed
Query issues exclusively by closed state
1 parent 9d50640 commit 8e54dfa

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

connector/connector-github/src/main/java/net/openhft/chronicle/releasenotes/connector/github/GitHubReleaseConnector.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ public ReleaseResult createAggregatedRelease(String repository, String tag, Map<
183183
releases.forEach((k, v) -> {
184184
formattedReleases.append(k).append(":\n");
185185

186-
v.forEach(release -> {
187-
formattedReleases.append("\t- ").append(release).append('\n');
188-
});
186+
v.forEach(release -> formattedReleases.append("\t- ").append(release).append('\n'));
189187

190188
formattedReleases.append('\n');
191189
});
@@ -721,9 +719,9 @@ private List<GHIssue> getIssuesFromIds(GHRepository repository, List<Integer> id
721719

722720
logger.debug("Fetching {} issues from repository '{}'", ids.size(), repository.getFullName());
723721

724-
return stream(repository.listIssues(GHIssueState.ALL).withPageSize(REQUEST_PAGE_SIZE))
725-
.filter(ghIssue -> ids.contains(ghIssue.getNumber()))
726-
.collect(toList());
722+
return stream(repository.listIssues(GHIssueState.CLOSED).withPageSize(REQUEST_PAGE_SIZE))
723+
.filter(ghIssue -> ids.contains(ghIssue.getNumber()))
724+
.collect(toList());
727725
}
728726

729727
private List<GHIssue> filterIssueLabels(List<GHIssue> issues, List<String> ignoredLabels) {
@@ -735,7 +733,7 @@ private List<GHIssue> filterIssueLabels(List<GHIssue> issues, List<String> ignor
735733

736734
return issues.stream()
737735
.filter(issue -> issue.getLabels().stream()
738-
.noneMatch(ghLabel -> ignoredLabels.contains(ghLabel.getName())))
736+
.noneMatch(ghLabel -> ignoredLabels.contains(ghLabel.getName())))
739737
.collect(toList());
740738
}
741739

0 commit comments

Comments
 (0)