Bring upstream change adding support for trivial keyword from bz
See PR: https://github.com/fedora-infra/fedora-gather-easyfix/pull/13 Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
4b4b508ecf
commit
7561764203
1 changed files with 15 additions and 6 deletions
|
@ -137,18 +137,27 @@ class Ticket(object):
|
||||||
|
|
||||||
|
|
||||||
def gather_bugzilla_easyfix():
|
def gather_bugzilla_easyfix():
|
||||||
""" From the Red Hat bugzilla, retrieve all new tickets flagged as
|
""" From the Red Hat bugzilla, retrieve all new tickets with keyword
|
||||||
easyfix.
|
easyfix or whiteboard trivial.
|
||||||
"""
|
"""
|
||||||
bugbz = bzclient.query(
|
bugbz_easyfix = bzclient.query(
|
||||||
{'f1': 'keywords',
|
{'f1': 'keywords',
|
||||||
'o1': 'allwords',
|
'o1': 'allwords',
|
||||||
'v1': 'easyfix',
|
'v1': 'easyfix',
|
||||||
'query_format': 'advanced',
|
'query_format': 'advanced',
|
||||||
'bug_status': ['NEW'],
|
'bug_status': ['NEW'],
|
||||||
'classification': 'Fedora'})
|
'classification': 'Fedora'})
|
||||||
#print " {0} easyfix bugs retrieve from the BZ ".format(len(bugbz))
|
# print " {0} easyfix bugs retrieved from BZ".format(len(bugbz_easyfix))
|
||||||
return bugbz
|
bugbz_trivial = bzclient.query(
|
||||||
|
{
|
||||||
|
'status_whiteboard': 'trivial',
|
||||||
|
'status_whiteboard_type': 'anywords',
|
||||||
|
'query_format': 'advanced',
|
||||||
|
'bug_status': ['NEW'],
|
||||||
|
'classification': 'Fedora'
|
||||||
|
})
|
||||||
|
# print " {0} trivial bugs retrieved from BZ".format(len(bugbz))
|
||||||
|
return (bugbz_easyfix + bugbz_trivial)
|
||||||
|
|
||||||
|
|
||||||
def gather_project():
|
def gather_project():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue