Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def comment_handler(bug, bugid, data):
r = Bugzilla.get_landing_comments(bug["comments"], [], NIGHTLY_PAT)
if not r:
invalids.add(bugid)
return
data[bugid]["land"] = {
i["revision"]: {"date": None, "backedout": False, "bugid": bugid}
for i in r
}
def comment_handler(bug, bugid, data):
r = Bugzilla.get_landing_comments(bug["comments"], [], nightly_pats)
landed = bool(r)
if not landed:
for comment in bug["comments"]:
comment = comment["text"].lower()
if "backed out" in comment or "backout" in comment:
landed = True
break
data[bugid]["landed"] = landed
def comment_handler(bug, bugid, data):
r = Bugzilla.get_landing_comments(bug["comments"], [], self.channel_pat)
if not r:
not_landed.add(bugid)
return
data[bugid]["land"] = {
i["revision"]: {"ok": False, "bugid": bugid} for i in r
}
def comment_handler(bug, bugid, data):
commenters = data[bugid]["commenters"]
for comment in bug["comments"]:
commenter = comment["author"]
if commenter in commenters:
commenters[commenter] += 1
else:
commenters[commenter] = 1
r = Bugzilla.get_landing_comments(bug["comments"], [], nightly_pats)
data[bugid]["revisions"] = [i["revision"] for i in r]