2a137e7821
Change-Id: Ib9bd1039922f5338fdea2348d9f221709c2fafde Reviewed-on: https://review.openstack.org/36336 Approved: Russell Bryant <rbryant@redhat.com> Reviewed-by: Russell Bryant <rbryant@redhat.com> Tested-by: Jenkins
27 lines
545 B
Bash
Executable File
27 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
|
|
projects=$1
|
|
all=0
|
|
|
|
if [ "$projects" = "" ] ; then
|
|
projects=projects/*.json
|
|
all=1
|
|
fi
|
|
|
|
mkdir -p results
|
|
|
|
rm -f results/*-reviewers-*
|
|
|
|
for project in ${projects} ; do
|
|
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
|
|
for time in 30 90 180 ; do
|
|
(date -u && echo && ./reviewers.py -p ${project} -d ${time}) > results/${project_base}-reviewers-${time}.txt
|
|
done
|
|
done
|
|
|
|
if [ "${all}" = "1" ] ; then
|
|
for time in 30 90 180 ; do
|
|
(date -u && echo && ./reviewers.py -a -d ${time}) > results/all-reviewers-${time}.txt
|
|
done
|
|
fi
|