fix: better bug keyword detection for feedback auto-labeling
All checks were successful
Security Checks / secret-scanning (push) Successful in 3s
Security Checks / dockerfile-lint (push) Successful in 4s
Security Checks / dependency-audit (push) Successful in 13s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 13:10:44 -05:00
parent 8618c01d21
commit 557bd80174

View File

@@ -38,8 +38,8 @@ def auto_label(text: str, source: str = "ios") -> list[int]:
label_ids.append(LABELS["web"])
# Bug or feature
bug_words = ["bug", "broken", "crash", "error", "wrong", "fix", "issue", "doesn't work", "not working", "can't"]
feature_words = ["want", "add", "wish", "would be nice", "can we", "can you", "feature", "idea", "suggest"]
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", "could you", "how about", "it would be", "please add", "need a", "would love"]
if any(w in text_lower for w in bug_words):
label_ids.append(LABELS["bug"])