aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/mtn2cl
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2007-06-16 18:00:23 +0000
committerMatthias Hentges <oe@hentges.net>2007-06-16 18:00:23 +0000
commit0f1d77c0e3079e868f9e1ff49d45362876a6cc7f (patch)
treebf806512cee8ec320d837de936542eb8cf6ac054 /contrib/mtn2cl
parentffbe139cc96fd1f387d259ee825bf48d7be8b137 (diff)
downloadopenembedded-0f1d77c0e3079e868f9e1ff49d45362876a6cc7f.tar.gz
openembedded-0f1d77c0e3079e868f9e1ff49d45362876a6cc7f.tar.bz2
openembedded-0f1d77c0e3079e868f9e1ff49d45362876a6cc7f.zip
mtn2cl: Show total bugs created vs. total bugs fixed over 7 days
Diffstat (limited to 'contrib/mtn2cl')
-rwxr-xr-xcontrib/mtn2cl/mtn2cl.sh8
1 files changed, 8 insertions, 0 deletions
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