A tool to get stats from Github
use github_stats::Repo;
let repo = Repo::new("rust-lang", "rust");
match repo {
Ok(repo) => {/* Do some stuff */},
Err(e) => eprintln!(":("),
}
use github_stats::{Query, Search};
// Gets latest merged PR
let search = Search::new(
"issues",
&Query::new().repo("rust-lang", "rust").is("pr").is("merged"),
)
.per_page(1)
.search();
match search {
Ok(results) => println!("# of merged PRs: {}", results.total_count()),
Err(e) => eprintln!(":("),
}