reviewstats/genresults-reviews-for-bugs.sh
Robert Collins e6d1ca533e Move reviews_for_bugs into reviewstats.
Change-Id: I4584b1fed09b0e10f144b9110457436dd04d601d
2013-11-25 11:18:12 -05:00

20 lines
395 B
Bash
Executable File

#!/bin/bash
projects=projects/*.json
if [ -n "${GERRIT_USER}" ] ; then
EXTRA_ARGS="-u ${GERRIT_USER}"
fi
metadata() {
date -u
echo -n "reviewstats HEAD: "
git rev-parse HEAD
echo
}
for project in ${projects} ; do
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
(metadata && reviews_for_bugs -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt
done