diff options
Diffstat (limited to 'contrib/weekly-changelog-report.py')
-rwxr-xr-x | contrib/weekly-changelog-report.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/weekly-changelog-report.py b/contrib/weekly-changelog-report.py new file mode 100755 index 0000000000..b5e70cb5be --- /dev/null +++ b/contrib/weekly-changelog-report.py @@ -0,0 +1,28 @@ +#!/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 + +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) + +print "OE weekly changelog %s to %s\n" % (start_day.isoformat(), end_day.isoformat()) + +os.system("git-shortlog --since=%s --until=%s | grep -v \"Merge branch\"" % (start_day.isoformat(), end_day.isoformat())) + + |