Skip to content

Commit 584e216

Browse files
committedDec 5, 2024·
fix: dyamic request limit for GraphQL
1 parent 876f264 commit 584e216

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/3-github/GHRepository.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ export class GHRepository {
180180
}
181181
}
182182

183+
const requestLimit = localStorage.getItem('gh-req-limit') || 5000;
184+
183185
function getFileProperty(keys: string) {
184186
return `
185187
repository(owner: $owner, name: $repo) {
186-
object(expression: $path, limit: 5000) {
188+
object(expression: $path, limit: ${requestLimit}) {
187189
... on Blob {
188190
${keys}
189191
}

0 commit comments

Comments
 (0)
Please sign in to comment.