[releng] [schedule] put the assignee for the release in the subject mail
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [releng] [schedule] put the assignee for the release in the subject mail
- Date: Fri, 17 Jul 2009 11:42:04 +0000 (UTC)
commit f0777e2b7b30e79d79eed9a4e5c77a9d1be5d646
Author: Vincent Untz <vuntz gnome org>
Date: Fri Jul 17 13:38:52 2009 +0200
[schedule] put the assignee for the release in the subject mail
We only do this if the mail goes to release-team gnome org
tools/schedule/automail.py | 2 ++
tools/schedule/libschedule.py | 14 +++++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/tools/schedule/automail.py b/tools/schedule/automail.py
index e3aacd5..1a59757 100755
--- a/tools/schedule/automail.py
+++ b/tools/schedule/automail.py
@@ -33,6 +33,8 @@ def mail_events(events):
# Show tasks only, even if we have notes
subject = "%s (and more)" % ', '.join([task.summary() for task in tasks])
+ if mail == 'release-team gnome org' and event.assignee:
+ subject += ' -- %s' % event.assignee
contents = StringIO.StringIO()
contents.write("Hello all,\n\n")
diff --git a/tools/schedule/libschedule.py b/tools/schedule/libschedule.py
index 9cedcb9..e66c649 100755
--- a/tools/schedule/libschedule.py
+++ b/tools/schedule/libschedule.py
@@ -10,13 +10,14 @@ import sys
class GnomeReleaseEvent:
definitions = {}
- def __init__ (self, date, week, category, detail, version=None):
+ def __init__ (self, date, week, category, detail, version=None, assignee=None):
self.date = date
self.rel_week = week
self.category = category
self.category_index = ["release", "tarball", "freeze", "modules", "misc"].index (category)
self.detail = detail
self.version = version
+ self.assignee = assignee
self.wiki_template = {
'tarball': 'GNOME $version $detail tarballs due',
'modules': {
@@ -235,7 +236,14 @@ def parse_file (filename):
# Expand event info
version = None
+ assignee = None
if category == 'release' and '.' in event:
+ if ' ' in event:
+ i = event.split(' ', 1)
+ event = i[0]
+ if i[1].strip():
+ assignee = i[1].strip()
+
i = event.split('.', 1)
if not '.' in i[1]:
event = i[0]
@@ -246,11 +254,11 @@ def parse_file (filename):
return None
if category == 'release':
- rel_event = GnomeReleaseEvent (date, week, 'tarball', event, version)
+ rel_event = GnomeReleaseEvent (date, week, 'tarball', event, version, assignee)
events.append (rel_event)
date = date + datetime.timedelta(2)
- rel_event = GnomeReleaseEvent (date, week, category, event, version)
+ rel_event = GnomeReleaseEvent (date, week, category, event, version, assignee)
events.append (rel_event)
continue
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]