github-tools / github-tools/github

[Feature Request] Allow page size option (per_page) in listPullRequestFiles call

オープン
#408 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。