fix(留言分頁): 改用 timeline 分頁讀取留言

Gitea 議題留言端點無法可靠處理分頁;改由 timeline 逐頁篩選 comment 事件並去重,讓抽取、整併與 PR 留言流程取得完整集合。
This commit is contained in:
2026-09-22 14:37:38 +08:00
parent a5699d1798
commit a944141109
5 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export function plannedRequests(repo, index) {
return [
{ method: 'GET', path: '/user' },
{ method: 'GET', path: pullPath },
{ method: 'GET', path: `/repos/${repo}/issues/${index}/comments` },
{ method: 'GET', path: `/repos/${repo}/issues/${index}/timeline` },
{ method: 'GET', path: `${pullPath}/reviews` },
{ method: 'GET', path: `/repos/${repo}/issues/${index}/timeline` },
];
@@ -65,7 +65,7 @@ export function plannedRequests(repo, index) {
export function commonRequests(repo, index) {
return [
{ method: 'GET', path: `/repos/${repo}/issues/${index}` },
{ method: 'GET', path: `/repos/${repo}/issues/${index}/comments` },
{ method: 'GET', path: `/repos/${repo}/issues/${index}/timeline` },
];
}