diff --git a/CHANGELOG.md b/CHANGELOG.md index c2931f1..f794006 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # credit +## 0.2.0 (2020-06-22) + +#### Changed + +- Allow multiple repositories to be checked at the same time. Their results are + aggregated into a single report. + ## 0.1.0 (2020-06-18) The initial release. diff --git a/Cargo.toml b/Cargo.toml index c223ff4..a2174b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "credit" -version = "0.1.0" +version = "0.2.0" authors = ["Colin Woodbury "] edition = "2018" description = "A tool for measuring Github repository contributions." diff --git a/README.md b/README.md index 7c9b843..b3c902c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build](https://github.com/fosskers/credit/workflows/Build/badge.svg)](https://github.com/fosskers/credit/actions) [![](https://img.shields.io/crates/v/credit.svg)](https://crates.io/crates/credit) - +![AUR version](https://img.shields.io/aur/version/credit-bin) `credit` - A tool for measuring Github repository contributions and the overall health of a project. @@ -137,6 +137,10 @@ time, with a large enough sample size, general trends of "who's doing the work" will emerge. **Expect weird results** for one-man projects or projects that otherwise have a long history of pushing directly to `master` without using PRs. +> Why not use commit counts instead of PRs? + +Per-user commit counts are already available on Github. + ### Median vs Mean You may notice that sometimes the reported `Median` and `Average` results can be diff --git a/src/main.rs b/src/main.rs index c0c7177..8b34d98 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,21 +5,6 @@ use gumdrop::{Options, ParsingStyle}; use itertools::Itertools; use std::process; -//- ~credit~: Just pull as much as possible via the Github API. -//- Who comments the most? -//- Average time to first issue response? -//- Average response time from Owner? -//- Who's PRs are getting merged? -//- Who is reviewing? -//- Query multiple repos at once and merge the results -//- Gotta call the endpoints I want manually. - -//- Allow the supplying of start and end dates. This can be used to -// track stats within a specific time period (say, some period in the past when -// you worked on a specific project). - -// Number of commits on `master` isn't counted - you can see that on Github :) - /// A tool for measuring repository contributions. #[derive(Debug, Options)] struct Env { @@ -58,7 +43,7 @@ fn work(env: Env) -> anyhow::Result { .repos .iter() .map(|(owner, repo)| credit::repository_threads(&client, &owner, &repo)) - .partition_map(|r| From::from(r)); + .partition_map(From::from); if !bads.is_empty() { eprintln!("There were some errors:");