Merge branch 'org.openembedded.dev' of ssh://git@git.openembedded.net/openembedded
[vuplus_openembedded] / contrib / weekly-changelog-report.py
1 #!/usr/bin/python
2
3
4 # generates an OE changelog for last weeks activity (Mon-Sun) assuming it is run on
5 # any day of the following week
6
7 # TODO
8 # - remove patch count as it does not match after we remove "Merge branch" statements
9 # - add bugzilla info
10
11 import datetime
12 import os
13
14 today = datetime.date.today()
15
16 # 0 = Mon, 6 = Sun
17 today_weekday = today.weekday()
18
19 # find Mon of this week
20 end_day = today - datetime.timedelta(today_weekday)
21
22 start_day = end_day - datetime.timedelta(7)
23
24 print "OE weekly changelog %s to %s\n" % (start_day.isoformat(), end_day.isoformat())
25
26 os.system("git-shortlog --since=%s --until=%s | grep -v \"Merge branch\" | grep -v \"Merge commit\"" % (start_day.isoformat(), end_day.isoformat()))
27
28