Skip to content

Commit

Permalink
[file_crash_bug] Clean up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid committed Nov 1, 2023
1 parent af12f4c commit 3228bae
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bugbot/rules/file_crash_bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,18 @@ def get_bugs(self, date):
}
]

if signature.regressed_by:
bug_data["keywords"].append("regression")
if signature.is_potential_security_crash:
bug_data["groups"] = ["core-security"]

if signature.regressed_by:
bug_data["keywords"].append("regression")
bug_data["regressed_by"] = [signature.regressed_by]

if signature.is_potential_security_crash:
bug_data["groups"] = ["core-security"]

if "regressed_by" in bug_data:
# Empty statuses are needed to detect the affected releases.
for flag in self.current_status_flags:
# Empty statuses are needed to detect the status updates.
if flag not in bug_data:
bug_data[flag] = "---"

bug_analyzer = BugAnalyzer(bug_data, signature.bugs_store)
updates = bug_analyzer.detect_version_status_updates()
for update in updates:
Expand Down

0 comments on commit 3228bae

Please sign in to comment.