Add server-side work item search

This commit is contained in:
Georg Bauer
2026-07-31 21:03:01 +02:00
parent af392209e8
commit a3962449a2
9 changed files with 234 additions and 42 deletions

View File

@@ -70,6 +70,7 @@ impl Client {
&self,
state: &str,
milestone: Option<&str>,
keyword: Option<&str>,
page: i32,
limit: i32,
) -> Result<Page<models::Issue>> {
@@ -84,7 +85,7 @@ impl Client {
Some(state),
None,
milestone,
None,
keyword,
None,
Some("pulls"),
None,
@@ -122,7 +123,7 @@ impl Client {
let mut pulls = Vec::new();
for page in 1.. {
let batch = self
.search_pulls(state, None, page, DEFAULT_PAGE_SIZE)
.search_pulls(state, None, None, page, DEFAULT_PAGE_SIZE)
.await?;
pulls.extend(batch.items);
if !batch.has_more {