How to use the libmozdata.bugzilla.Bugzilla.get_landing_comments function in libmozdata

To help you get started, we’ve selected a few libmozdata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / relman-auto-nag / auto_nag / scripts / code_freeze_week.py View on Github external
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
            }
github mozilla / relman-auto-nag / auto_nag / scripts / not_landed.py View on Github external
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
github mozilla / relman-auto-nag / auto_nag / scripts / unlanded.py View on Github external
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
            }
github mozilla / relman-auto-nag / auto_nag / scripts / no_assignee.py View on Github external
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]