changeset 53:8e245a01829d

summary command
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 16 Sep 2013 04:51:48 -0700
parents f961f2002d4e
children 39325717218d
files bzconsole/api.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bzconsole/api.py	Mon Jun 17 15:34:33 2013 -0700
+++ b/bzconsole/api.py	Mon Sep 16 04:51:48 2013 -0700
@@ -78,6 +78,15 @@
         number = int(number)
         return self._request('/bug/%d' % number)
 
+    def summary(self, number):
+        """
+        display bug summary:
+        'bug 123456 - dancing is forbidden now'
+        """
+        number = int(number)
+        bug = self._request('/bug/%d' % number)
+        return '%d - %s' % (number, bug['summary'])
+
     def new(self, component, title, product=None,
             version=None, description=None, whiteboard=(), cc=(),
             blocks=(), depends_on=()):