system-config/tools/atc/email-stats.sh
Jeremy Stanley 9822dd517e Retrieve ATC project list from governance repo
* tools/atc/email-stats.sh: We now have an official list of projects
in the openstack/governance project, so use it instead of the old
hard-coded list.

Change-Id: If93c71174687ac7e4e46d514642c48edb841adfe
2014-02-28 16:50:29 +00:00

18 lines
601 B
Bash
Executable File

#!/bin/sh
# Projects counting for code contribution
for project in $(
wget -qO- \
https://git.openstack.org/cgit/openstack/governance/plain/reference/programs.yaml \
| grep '^ *- [A-Za-z_-]\+/[A-Za-z_-]\+$' \
| sed 's/^ *- //'
) ; do
python email-stats.py -p $project -o out/$( basename $project ).csv
done
# Confirmed list of non-code contributors
wget -qO- \
https://git.openstack.org/cgit/openstack/governance/plain/reference/extra-atcs \
| sed -e 's/#.*//' -e 's/^\s*//' -e 's/\s*$//' -e '/^$/d' \
-e 's/[^:]*: \(.*\) (\(.*\)) .*/,\1,\2/' > out/non-code-contributors.csv