This project is an AI that can read bug reports and go:
“okay this bug is serious, kinda urgent, and send it to team backend pls 😤”
basically it helps devs by tagging bugs automatically.
bugs are annoying. figuring out where it is also annoying.
so Imma use some machine learning tech:
- guess the type
- guess how severe it is
- guess the priority
- guess which team should fix it
Python
pandas
+scikit-learn
for data & MLsentence-transformers
(BERT, honestly I'm still clueless the full function of it, still learning)MultiOutputClassifier
withLogisticRegression
joblib
to savepytest
making sure nothing explodesstreamlit
to show off (optional 👀)
generate_bugs.py
→ makes fake bug reports and savesbugs.csv
bug_classifier.py
→ processes data, evaluates itbug_model.py
→ use ML logic (still messy)utils.py
→ text cleaning, etc.app.py
→ streamlit app for live prediction demotests/
→ testing the function works or not
label
→ what kind of bug? (UI, Backend, etc)severity
→ how bad is it?priority
→ how fast do we fix this?team
→ who’s in charge?
# clone it
git clone https://github.com/Faiz2468/bug-triage-ai.git
cd bug-triage-ai
# make the environment
python -m venv venv
venv\Scripts\activate
# install all ingredients
pip install -r requirements.txt
# create some bugs
python data/generate_bugs.py
# train the brain
python bug_classifier.py
# run the UI
streamlit run app.py
## MIT licence
Do what u want. just don’t sell it