diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-06-11 21:23:56 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-06-11 21:24:25 +0800 |
commit | 7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284 (patch) | |
tree | b6b121d108a27b5296865b1b2a841731fdca49a0 | |
parent | cf5caa2099aaad410f76ccb839ea20687ef92e27 (diff) | |
download | gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar.gz gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar.bz2 gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar.lz gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar.xz gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.tar.zst gsoc2013-empathy-7b1d5580526f2f2644d5ff7202d0f8f6cd4f3284.zip |
Get author for bug fixes
-rwxr-xr-x | release.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/release.py b/release.py index 9d20d1ab6..13fa386b2 100755 --- a/release.py +++ b/release.py @@ -161,6 +161,16 @@ class Project: translations += format % (lang, authors) return translations + def get_bug_author(self, bug_number): + cmd = 'git log %s.. | grep -B 20 "#%s"' \ + ' | tac | grep ^Author: | head -1' \ + % (self.last_tag, bug_number) + line = self.exec_cmd (cmd) + p1 = line.find(" ") + p2 = line.find("<") + + return line[p1:p2].strip() + def get_bugs(self): commit_str = self.exec_cmd('git show %s' % (self.last_tag)) for line in commit_str.splitlines(): @@ -196,7 +206,11 @@ class Project: for row in reader: bug_number = row[col_bug_id] description = row[col_description] - bugs += ' - Fixed #%s, %s\n' % (bug_number, description) + author = self.get_bug_author(bug_number) + bugs += ' - Fixed #%s, %s' % (bug_number, description) + if author != '': + bugs += ' (%s)' % (author) + bugs += '\n' return bugs def generate_news(self): |