File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/plus/integrations/providers/github Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3040,15 +3040,17 @@ export class GitHubApi implements Disposable {
3040
3040
const scope = getLogScope ( ) ;
3041
3041
3042
3042
interface SearchResult {
3043
- nodes : GitHubPullRequest [ ] ;
3043
+ search : {
3044
+ nodes : GitHubPullRequest [ ] ;
3045
+ } ;
3044
3046
}
3045
3047
3046
3048
try {
3047
3049
const query = `query searchPullRequests(
3048
3050
$searchQuery: String!
3049
3051
$avatarSize: Int
3050
3052
) {
3051
- search(first: 100 , query: $searchQuery, type: ISSUE) {
3053
+ search(first: 10 , query: $searchQuery, type: ISSUE) {
3052
3054
nodes {
3053
3055
...on PullRequest {
3054
3056
${ gqlPullRequestFragment }
@@ -3082,7 +3084,7 @@ export class GitHubApi implements Disposable {
3082
3084
) ;
3083
3085
if ( rsp == null ) return [ ] ;
3084
3086
3085
- const results = rsp . nodes . map ( pr => fromGitHubPullRequest ( pr , provider ) ) ;
3087
+ const results = rsp . search . nodes . map ( pr => fromGitHubPullRequest ( pr , provider ) ) ;
3086
3088
return results ;
3087
3089
} catch ( ex ) {
3088
3090
throw this . handleException ( ex , provider , scope ) ;
You can’t perform that action at this time.
0 commit comments