aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2011-05-31 07:59:02 -0400
committerCliff Brake <cbrake@bec-systems.com>2011-05-31 07:59:02 -0400
commitb631bd354261341259763b2de57ca4e4b346635c (patch)
treeac29470ba22bd85ab8ad90192b15f5e21e6a8e0b
parent1526cc2d85d317b1ca6662467eb1f31ef44f26a9 (diff)
downloadopenembedded-admin-b631bd354261341259763b2de57ca4e4b346635c.zip
openembedded-admin-b631bd354261341259763b2de57ca4e4b346635c.tar.gz
openembedded-admin-b631bd354261341259763b2de57ca4e4b346635c.tar.bz2
cleanup and rename weekly-changelog script
-rw-r--r--README3
-rwxr-xr-xtools/weekly-changelog-report.py51
-rw-r--r--tools/weekly-changelog.js (renamed from tools/git-weekly-changelog.js)2
3 files changed, 2 insertions, 54 deletions
diff --git a/README b/README
index 4b9e543..d366dd5 100644
--- a/README
+++ b/README
@@ -7,8 +7,7 @@ to set up:
- npm install nodemailer (tested with 0.1.13)
to use:
- - git submodule foreach "git fetch" (pull down the latest repo data for each project)
- - node ./tools/git-weekly-changelog.js (email out weekly changelog reports, based on origin/master in each project)
+ - node ./tools/weekly-changelog.js (email out weekly changelog reports, based on origin/master in each project)
to develop:
- cd tools
diff --git a/tools/weekly-changelog-report.py b/tools/weekly-changelog-report.py
deleted file mode 100755
index 641d4be..0000000
--- a/tools/weekly-changelog-report.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/python
-
-
-# generates an OE changelog for last weeks activity (Mon-Sun) assuming it is run on
-# any day of the following week
-
-# TODO
-# - remove patch count as it does not match after we remove "Merge branch" statements
-# - add bugzilla info
-
-import datetime
-import os
-import sys
-import string
-
-today = datetime.date.today()
-
-# 0 = Mon, 6 = Sun
-today_weekday = today.weekday()
-
-# find Mon of this week
-end_day = today - datetime.timedelta(today_weekday)
-
-start_day = end_day - datetime.timedelta(7)
-
-if (len(sys.argv) <= 1):
- branch = "origin/master"
-else:
- branch = sys.argv[1]
-
-branch_pretty = string.replace(branch, "origin/", "")
-
-#print "OE weekly changelog for %s, %s to %s\n" % (branch_pretty, start_day.isoformat(), end_day.isoformat())
-os.system("git shortlog --since=%s --until=%s %s | grep -v 'Merge branch' | grep -v 'Merge commit'|sed -e 's/^ //g'|cut -b -78 " % (start_day.isoformat(), end_day.isoformat(), branch))
-
-sys.exit(0)
-
-os.system("wget 'http://bugs.openembedded.net/buglist.cgi?bug_file_loc=&bug_file_loc_type=allwordssubstr&bug_id=&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&bugidtype=include&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&known_name=1WFixed&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=RESOLVED%2CVERIFIED%2CCLOSED&value0-0-0=&ctype=csv' -O resolved-bugs.csv >& /dev/null")
-os.system("wget 'http://bugs.openembedded.net/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 new-bugs.csv &> /dev/null")
-
-
-print "====================================================="
-print "Bugs fixed:\n"
-
-os.system("cat resolved-bugs.csv | awk -F, '{print $1 \" \" $7 \"\t \" $8}' | sed s:\\\"::g")
-
-print "\nBugs opened:\n"
-
-os.system("cat new-bugs.csv | awk -F, '{print $1 \" \" $7 \"\t \" $8}' | sed s:\\\"::g")
-
-
diff --git a/tools/git-weekly-changelog.js b/tools/weekly-changelog.js
index ebc362d..4bf248d 100644
--- a/tools/git-weekly-changelog.js
+++ b/tools/weekly-changelog.js
@@ -1,6 +1,6 @@
// script to collect the weekly changelog in a git repo
-var testing = true;
+var testing = false;
var email_to = '';
var email_bcc = 'cbrake@bec-systems.com,';