feat(backend-github): add pagination (#3379)

This commit is contained in:
Erez Rokah
2020-03-05 11:58:49 +01:00
committed by GitHub
parent 5339735994
commit 39f1307e3a
4 changed files with 295 additions and 7 deletions

View File

@ -258,6 +258,9 @@ export default class GitGateway implements Implementation {
entriesByFolder(folder: string, extension: string, depth: number) {
return this.backend!.entriesByFolder(folder, extension, depth);
}
allEntriesByFolder(folder: string, extension: string, depth: number) {
return this.backend!.allEntriesByFolder(folder, extension, depth);
}
entriesByFiles(files: ImplementationFile[]) {
return this.backend!.entriesByFiles(files);
}
@ -511,6 +514,6 @@ export default class GitGateway implements Implementation {
return this.backend!.publishUnpublishedEntry(collection, slug);
}
traverseCursor(cursor: Cursor, action: string) {
return (this.backend as GitLabBackend | BitbucketBackend).traverseCursor!(cursor, action);
return this.backend!.traverseCursor!(cursor, action);
}
}