Skip to content

Commit

Permalink
Use certain whiteboard values as labels for the bugtype model (#3823)
Browse files Browse the repository at this point in the history
Fixes #720
  • Loading branch information
PromiseFru authored Nov 23, 2023
1 parent 1443bf3 commit 56822b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bugbug/models/bugtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,17 @@ def bug_to_types(
"snappy",
"pdfjs-c-performance",
"pdfjs-performance",
"sp3",
)
):
types.add("performance")

if any(
f"[{whiteboard_text}" in bug["whiteboard"].lower()
for whiteboard_text in ("client-bounty-form", "sec-survey")
):
types.add("security")

if "cf_performance" in bug and bug["cf_performance"] not in ("---", "?"):
types.add("performance")

Expand Down

0 comments on commit 56822b3

Please sign in to comment.