Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Feature request: Permit to go through all files with calls to ListTree #1974

@0xDagal

Description

@0xDagal

Context

For a project, I'm trying to go through all files of some projects to find some specific files. And I know about the search blob API, but I do not have the right tier.

What is in the API

To do so, in with the API, I can either

  • use an offset based pagination, retrieve the last page from the response link header and do until I receive an empty table
  • use a keyset based pagination, ordered by ID, get the next ID with the response link header, use the page_token to tell which ID to begin with and, as well, do until I receive an empty table
  • use a keyset based pagination, ordered by ID, get the last ID from my table, use the page_token to tell which ID to begin with and, as well, do until I receive an empty table

With the SDK

With RepositoriesService.ListTree I do not have the last page in my response, neither I have the page_token in the options.

What is needed

To add either the page in the RepositoriesService.ListTree or add the page_token in the ListTreeOptions struct, or both.

I could help in the process by making a PR if needed and also maybe other APIs are affected as the pagination system is everywhere, so I may wait for an answer here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions