Add server-side work item search
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user