Skip to content

Commit

Permalink
[not_landed] Prevent requesting needinfo for backed out patches (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmah authored Aug 19, 2024
1 parent a80b2ac commit 79ec02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugbot/rules/not_landed.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ def handle_attachment(self, attachment, res):

def get_patch_data(self, bugs):
"""Get patch information in bugs"""
nightly_pat = Bugzilla.get_landing_patterns(channels=["nightly"])[0][0]
patterns = Bugzilla.get_landing_patterns(channels=["nightly", "autoland"])

def comment_handler(bug, bugid, data):
# if a comment contains a backout: don't nag
for comment in bug["comments"]:
comment = comment["text"].lower()
if nightly_pat.match(comment) and (
if any(pat[0].match(comment) for pat in patterns) and (
"backed out" in comment or "backout" in comment
):
data[bugid]["backout"] = True
Expand Down

0 comments on commit 79ec02e

Please sign in to comment.