69e6906032
Change-Id: I184d5c4f066f461d570e9724f05c8d434c812b92
20 lines
400 B
Bash
Executable File
20 lines
400 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.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-reviews-for-bugs.txt
|
|
done
|