diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 547a663ad8..1ecd86f0bd 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1603,7 +1603,9 @@ public GHIssueEvent getIssueEvent(long id) throws IOException { * @return the issues * @throws IOException * the io exception + * @deprecated Use {@link #queryIssues()} instead. */ + @Deprecated public List getIssues(GHIssueState state) throws IOException { return queryIssues().state(state).list().toList(); } @@ -1618,7 +1620,9 @@ public List getIssues(GHIssueState state) throws IOException { * @return the issues * @throws IOException * the io exception + * @deprecated Use {@link #queryIssues()} instead. */ + @Deprecated public List getIssues(GHIssueState state, GHMilestone milestone) throws IOException { return queryIssues().milestone(milestone == null ? "none" : "" + milestone.getNumber()) .state(state)