KnpLabs / KnpLabs/php-github-api

Pagination for preview endpoints

未關閉
#716 12 則留言 1 個 reaction 已指派 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 摘要。