File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
application/src/main/java/org/togetherjava/tjbot/features/github Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 44import net .dv8tion .jda .api .events .interaction .command .SlashCommandInteractionEvent ;
55import net .dv8tion .jda .api .interactions .commands .OptionType ;
66import org .kohsuke .github .GHIssue ;
7- import org .kohsuke .github .GHIssueState ;
87
98import org .togetherjava .tjbot .features .CommandVisibility ;
109import org .togetherjava .tjbot .features .SlashCommandAdapter ;
@@ -143,7 +142,7 @@ private void updateCache() {
143142
144143 autocompleteGHIssueCache = reference .getRepositories ().stream ().map (repo -> {
145144 try {
146- return repo .getIssues ( GHIssueState . ALL );
145+ return repo .queryIssues (). pageSize ( 1000 ). list (). toList ( );
147146 } catch (IOException ex ) {
148147 throw new UncheckedIOException ("Error fetching issues from repo " + repo .getName (),
149148 ex );
You can’t perform that action at this time.
0 commit comments