From 0f1d77c0e3079e868f9e1ff49d45362876a6cc7f Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Sat, 16 Jun 2007 18:00:23 +0000 Subject: mtn2cl: Show total bugs created vs. total bugs fixed over 7 days --- contrib/mtn2cl/mtn2cl.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib') diff --git a/contrib/mtn2cl/mtn2cl.sh b/contrib/mtn2cl/mtn2cl.sh index cba9d5cdb8..5b736ed9f7 100755 --- a/contrib/mtn2cl/mtn2cl.sh +++ b/contrib/mtn2cl/mtn2cl.sh @@ -29,5 +29,13 @@ wget 'http://bugs.openembedded.org/buglist.cgi?bug_file_loc=&bug_file_loc_type=a cat logs/bugs.csv | awk -F, '{print $1 " " $7 "\t " $8}' | sed s:\"::g >> ChangeLog +wget "http://bugs.openembedded.org/buglist.cgi?bug_file_loc=&bug_file_loc_type=allwordssubstr&bug_id=&bugidtype=include&chfield=bug_status&chfieldfrom=7d&chfieldto=Now&chfieldvalue=RESOLVED&email1=&email2=&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailqa_contact2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field0-0-0=noop&long_desc=&long_desc_type=substring&query_format=advanced&remaction=&short_desc=&short_desc_type=allwordssubstr&type0-0-0=noop&value0-0-0=&ctype=csv" -O logs/resolved-bugs.csv >& /dev/null +wget "http://bugs.openembedded.org/buglist.cgi?bug_file_loc=&bug_file_loc_type=allwordssubstr&bug_id=&bug_status=NEW&bugidtype=include&chfield=%5BBug%20creation%5D&chfieldfrom=7d&chfieldto=Now&chfieldvalue=&email1=&email2=&emailassigned_to1=1&emailassigned_to2=1&emailcc2=1&emailqa_contact2=1&emailreporter2=1&emailtype1=substring&emailtype2=substring&field-1-0-0=bug_status&field0-0-0=noop&long_desc=&long_desc_type=substring&query_format=advanced&remaction=&short_desc=&short_desc_type=allwordssubstr&type-1-0-0=anyexact&type0-0-0=noop&value-1-0-0=NEW&value0-0-0=&ctype=csv" -O logs/new-bugs.csv &>/dev/null + +NEW_BUGS="`cat logs/new-bugs.csv | wc -l | tr -d " "`" +RESOLVED_BUGS="`cat logs/resolved-bugs.csv | wc -l | tr -d " "`" + +echo -e "\nIn total $NEW_BUGS bugs have been created and $RESOLVED_BUGS bugs were closed." >> ChangeLog + rm -Rf logs -- cgit v1.2.3