manager: Fix pagination limit for issue list

It turns out that `None` does not disable pagination, it just uses the
default limit.  Set an obscenely high limit to ensure we get the full
list.
This commit is contained in:
Rahix 2025-05-22 17:23:46 +02:00
parent e418d9d720
commit 34e9a99d61

View file

@ -13,7 +13,7 @@ pub async fn collect_tree(
// We also want the closed issues
state: Some(forgejo_api::structs::IssueListIssuesQueryState::All),
// No pagination
limit: None,
limit: Some(10000),
// Only issues
r#type: Some(forgejo_api::structs::IssueListIssuesQueryType::Issues),
..Default::default()
@ -49,7 +49,7 @@ pub async fn collect_tree(
&meta.issue.repository.name,
&issue.to_string(),
forgejo_api::structs::IssueListIssueDependenciesQuery {
limit: None,
limit: Some(10000),
..Default::default()
},
)