indications = set()
for comment in [pr_req.json()]+comments.json()+reviews.json()+review_comments.json():
body = comment["body"]
- url = comment["html_url"]
- for m in BZ_MATCH.finditer(body):
- log.info("[ {url} ] BZ cited: {cite}".format(url=url, cite=m.group(1)))
- for m in TRACKER_MATCH.finditer(body):
- log.info("[ {url} ] Ceph tracker cited: {cite}".format(url=url, cite=m.group(1)))
- for indication in INDICATIONS:
- for cap in indication.findall(comment["body"]):
- indications.add(cap)
+ if body:
+ url = comment["html_url"]
+ for m in BZ_MATCH.finditer(body):
+ log.info("[ {url} ] BZ cited: {cite}".format(url=url, cite=m.group(1)))
+ for m in TRACKER_MATCH.finditer(body):
+ log.info("[ {url} ] Ceph tracker cited: {cite}".format(url=url, cite=m.group(1)))
+ for indication in INDICATIONS:
+ for cap in indication.findall(comment["body"]):
+ indications.add(cap)
new_new_contributors = {}
for review in reviews.json():