Closed vishesh-baghel closed 8 months ago
The project has seen a comprehensive update, enhancing its pull request commenting capabilities and integrating with MindsDB for predictive modeling. It now connects to MongoDB more aptly, refines logging, and revises the data schema to include risk assessment features. Additionally, the codebase has been refactored to streamline GitHub event handling and facilitate machine learning model training, aiming to predict risk scores for files in repositories.
File Path | Change Summary |
---|---|
src/constants/Comments.ts |
Introduced CommentType enum and functions for PR comments. |
src/db/.../mindsdbConnection.ts |
Added functions for MindsDB connection via mindsdb-js-sdk and Probot. |
src/db/models/File.ts |
Changed riskScore to mandatory; added predictedRiskScore ; renamed export to repoFile . |
src/db/models/TrainingFile.ts &src/types/TrainingFileType.ts |
Created Mongoose schema and type for training file data. |
src/db/mongodbConnection.ts |
Renamed connectDb to connectMongoDB . |
src/fetch/... |
Updated error and log messages with square brackets for clarity. |
src/listeners/githubWebhookListener.ts |
Added function for GitHub webhook event listening. |
src/main.ts |
Overhauled main function for new DB connections and model training logic. |
src/services/commentService.ts |
Added constants and updated comment construction with predictedScore . |
src/services/predictionService.ts |
Added model training and retraining functionality with MindsDB. |
src/services/pullRequestService.ts &src/services/repositoryService.ts |
Updated functions for file updates and batch processing with new risk score features. |
src/types/FileScoreMap.ts &src/types/FileType.ts |
Added predictedScore and predictedRiskScore properties. |
🐇 "In the realm of code and bit,"
"Where the data streams do flit,"
"A rabbit's touch, now models train,"
"Predicting risks, in code's domain." 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Improvements
Database Enhancements
Documentation
Bug Fixes