You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried the example from the main page (README.md) and it returns only the first page of the issues.
Please, can you update the example?
let octocrab = octocrab::instance();// Returns the first page of all issues.letmut page = octocrab
.issues("XAMPPRocky","octocrab").list()// Optional Parameters.creator("XAMPPRocky").state(params::State::All).per_page(50).send().await?;// Go through every page of issues. Warning: There's no rate limiting so// be careful.loop{for issue in&page {println!("{}", issue.title);}
page = match octocrab
.get_page::<models::issues::Issue>(&page.next).await?
{Some(next_page) => next_page,None => break,}}
The text was updated successfully, but these errors were encountered:
Hi,
I tried the example from the main page (README.md) and it returns only the first page of the issues.
Please, can you update the example?
The text was updated successfully, but these errors were encountered: