fix: better bug keyword detection for feedback auto-labeling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,8 +38,8 @@ def auto_label(text: str, source: str = "ios") -> list[int]:
|
|||||||
label_ids.append(LABELS["web"])
|
label_ids.append(LABELS["web"])
|
||||||
|
|
||||||
# Bug or feature
|
# Bug or feature
|
||||||
bug_words = ["bug", "broken", "crash", "error", "wrong", "fix", "issue", "doesn't work", "not working", "can't"]
|
bug_words = ["bug", "broken", "crash", "error", "wrong", "fix", "issue", "doesn't work", "not working", "can't", "cant", "won't", "wont", "stuck", "freeze", "blank", "missing", "fail", "weird", "off", "messed", "problem", "glitch", "after you edit", "after i edit", "when i click", "when you click", "should be", "supposed to"]
|
||||||
feature_words = ["want", "add", "wish", "would be nice", "can we", "can you", "feature", "idea", "suggest"]
|
feature_words = ["want", "add", "wish", "would be nice", "can we", "can you", "feature", "idea", "suggest", "could you", "how about", "it would be", "please add", "need a", "would love"]
|
||||||
|
|
||||||
if any(w in text_lower for w in bug_words):
|
if any(w in text_lower for w in bug_words):
|
||||||
label_ids.append(LABELS["bug"])
|
label_ids.append(LABELS["bug"])
|
||||||
|
|||||||
Reference in New Issue
Block a user