Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Jun 22, 2020
1 parent ab3477f commit 00b87f3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "credit"
version = "0.1.0"
version = "0.2.0"
authors = ["Colin Woodbury <[email protected]>"]
edition = "2018"
description = "A tool for measuring Github repository contributions."
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
17 changes: 1 addition & 16 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -58,7 +43,7 @@ fn work(env: Env) -> anyhow::Result<String> {
.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:");
Expand Down

0 comments on commit 00b87f3

Please sign in to comment.