goal-tools/tools/run_contributor_report.sh
Doug Hellmann 8ebb1b8056 skip the anonymous and distinct reports
these are easy enough to produce from other data

Change-Id: I7641b0c3320cf6f5d889f72c2eb6ab68ece6df84
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-02 22:14:34 -04:00

32 lines
964 B
Bash
Executable File

#!/bin/bash -xe
if [ ! -f .tox/venv/bin/activate ]; then
tox -e venv --notest
fi
source .tox/venv/bin/activate
for input in $*
do
txt_file=${input%.qry}.txt
dat_file=${input%.qry}.dat
rpt_file=${input%.qry}.rpt
# Text report
who-helped --debug contributions summarize $dat_file \
| tee $rpt_file
# CSV version of report summarizing contributions per org
who-helped contributions summarize -f csv --ignore-single-vendor $dat_file \
| tee $rpt_file.contributions.csv
# CSV version of report summarizing contributions per sponsor org
who-helped contributions summarize -f csv \
--highlight-sponsors --ignore-single-vendor $dat_file \
| tee $rpt_file.sponsor-contributions.csv
# CSV version of report summarizing people per org
who-helped contributions summarize -f csv \
--count Name --ignore-single-vendor $dat_file \
| tee $rpt_file.people.csv
done