github-tools / github-tools/github

[Feature Request] Ability to fetch a single page of items in a list

未关闭
#406 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.8k
派生
809
PR 合并指标
30 天内没有已合并 PR

描述

Would be nice to be able to fetch only a page of repositories, repo commits, and other lists instead of fetching the entire thing every time. Currently they call into _requestAllPages which automatically fetches everything from github, which can take awhile for long lists.

@mtscout6 suggested on gitter that a generator function would be a good way to accomplish this.

If there's a good direction to go in, I can probably work on this.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by tracing how repository, commit, and other list methods call _requestAllPages. Review the suggested generator-function direction and determine how callers can request a single page without changing existing full-fetch behavior. Done means list APIs support bounded pagination and the behavior is clear for long GitHub lists.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。