'product': product, 'component': component, 'status': ['UNCONFIRMED', 'NEW'], 'creation_time': '2012-08-01 00:00 UTC', }])} bingle = Bingle(payload, debug=debug, picklePath=picklePath, feedUrl=config.get( 'urls', 'bugzillaFeed')) # prepare Mingle instance mingle = Mingle(auth, apiBaseUrl) for bug in bingle.getBugEntries(): bingle.info("Bug XML: %s" % bug) # look for card foundBugs = mingle.findCardByName( bugCard, bug.get('summary'), bug.get('id')) bingle.info(mingle.dumpRequest()) if len(foundBugs) > 0: continue # retrieve bug comments comment_payload = {'method': 'Bug.comments', 'params': json.dumps( [{'ids': ['%s' % bug.get('id')]}])} comments = bingle.getBugComments(comment_payload, bug.get('id')) link = '<br><p>Full bug report at https://bugzilla.wikimedia.org/%s</p>' % bug.get( 'id') # set common mingle parameters cardParams = { 'card[name]': '[Bug %s] %s' % (bug.get('id', '---'), bug.get('summary').encode('ascii', 'ignore')), 'card[card_type_name]': bugCard,