github-tools / github-tools/github
[Feature Request] Allow page size option (per_page) in listPullRequestFiles call
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
The listPullRequests call allows an optional second parameter for options that include setting the page size for for a request. GitHub allows `per_page` to also be sent along for the call wrapped by `listPullRequestFiles` but this library doesn't allow options to be passed.
I'm happy to submit a PR but want to know:
1. If you're cool with this
2. How you'd like me to add this functionality without breaking any existing uses of the library that rely on the second parameter being a callback. implement a `listPullRequestFilesWithOptions`?
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by locating the listPullRequests and listPullRequestFiles entry points and compare how their parameters and callbacks are handled. Check existing uses or tests for listPullRequestFiles before choosing a backward-compatible options form. Done means callers can pass per_page through to the wrapped GitHub request without breaking callback-based calls.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100