Permalink
Browse files

Added target milestone to post options.

  • Loading branch information...
1 parent 5fd1bff commit 3c838b270bc32b43d0cd2760141fb5e956d584d4 @originalgremlin committed Jan 26, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 bugz/bugzilla.py
View
7 bugz/bugzilla.py
@@ -719,7 +719,7 @@ def attachment(self, attachid):
except:
return {}
- def post(self, product, component, title, description, url = '', assigned_to = '', cc = '', keywords = '', version = '', dependson = '', blocked = '', priority = '', severity = '', os='', browser=''):
+ def post(self, product, component, title, description, url = '', assigned_to = '', cc = '', keywords = '', version = '', dependson = '', blocked = '', priority = '', severity = '', os='', browser='', milestone=''):
"""Post a bug
@param product: product where the bug should be placed
@@ -752,7 +752,9 @@ def post(self, product, component, title, description, url = '', assigned_to = '
@type: string
@keyword browser: web browser which caused the bug to manifest
@type: string
-
+ @keyword milestone: target milestone (alpha, beta, launch, etc.)
+ @type: string
+
@rtype: int
@return: the bug number, or 0 if submission failed.
"""
@@ -771,6 +773,7 @@ def post(self, product, component, title, description, url = '', assigned_to = '
qparams['blocked'] = blocked
qparams['op_sys'] = os
qparams['cf_browser'] = browser
+ qparams['target_milestone'] = milestone
#XXX: default version is 'unspecified'
if version != '':

0 comments on commit 3c838b2

Please sign in to comment.