Skip to content

Commit 970fd47

Browse files
authored
Deprecate GHRepository#getIssues() (#2129)
GHRepository#getIssues() has poor performance for large response sets and works against the best usage patterns. Deprecated in favor of #queryIssues(). Closes #2128
1 parent 47ef7a7 commit 970fd47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,9 @@ public GHIssueEvent getIssueEvent(long id) throws IOException {
16031603
* @return the issues
16041604
* @throws IOException
16051605
* the io exception
1606+
* @deprecated Use {@link #queryIssues()} instead.
16061607
*/
1608+
@Deprecated
16071609
public List<GHIssue> getIssues(GHIssueState state) throws IOException {
16081610
return queryIssues().state(state).list().toList();
16091611
}
@@ -1618,7 +1620,9 @@ public List<GHIssue> getIssues(GHIssueState state) throws IOException {
16181620
* @return the issues
16191621
* @throws IOException
16201622
* the io exception
1623+
* @deprecated Use {@link #queryIssues()} instead.
16211624
*/
1625+
@Deprecated
16221626
public List<GHIssue> getIssues(GHIssueState state, GHMilestone milestone) throws IOException {
16231627
return queryIssues().milestone(milestone == null ? "none" : "" + milestone.getNumber())
16241628
.state(state)

0 commit comments

Comments
 (0)