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 4
4
import net .dv8tion .jda .api .events .interaction .command .SlashCommandInteractionEvent ;
5
5
import net .dv8tion .jda .api .interactions .commands .OptionType ;
6
6
import org .kohsuke .github .GHIssue ;
7
- import org .kohsuke .github .GHIssueState ;
8
7
9
8
import org .togetherjava .tjbot .features .CommandVisibility ;
10
9
import org .togetherjava .tjbot .features .SlashCommandAdapter ;
@@ -124,7 +123,7 @@ private ToIntFunction<String> suggestionScorer(String title) {
124
123
private void updateCache () {
125
124
autocompleteGHIssueCache = reference .getRepositories ().stream ().map (repo -> {
126
125
try {
127
- return repo .getIssues ( GHIssueState . ALL );
126
+ return repo .queryIssues (). pageSize ( 1000 ). list (). toList ( );
128
127
} catch (IOException ex ) {
129
128
throw new UncheckedIOException (ex );
130
129
}
You can’t perform that action at this time.
0 commit comments