KnpLabs / KnpLabs/php-github-api

Pagination for preview endpoints

オープン
#716 コメント 12 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.2k
フォーク
587
PR マージ指標
30日以内にマージされた PR はありません

説明

I have some code like below but it appears to be dropping the `Accept` header for the preview of projects endpoint when trying to paginate. Is there some other way that I should be running configure to make that work?

```
$cardsApi = $githubClient->api('repo')->projects()->columns()->cards()->configure();
$paginator = new Github\ResultPager($githubClient);
$parameters = [$columnId];
$cards = $paginator->fetchAll($cardsApi, 'all', $parameters);

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reading the repo/projects/columns/cards configure chain and Github\ResultPager::fetchAll used in the example, focusing on how preview headers are carried into paginated requests. Reproduce the pagination call and verify that the projects preview Accept header is preserved for every request.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, php
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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