Skip to content

AI Code Reviewer: AI-powered tool that auto-reviews Bitbucket PRs and posts actionable comments instantly.

Notifications You must be signed in to change notification settings

Strako/AI-Code-Reviewer

Repository files navigation

🤖 AI Code Reviewer

Supercharge your pull requests with intelligent AI-powered code reviews

AI Code Reviewer is an AI-powered NestJS tool that streamlines your development workflow by automatically generating pull request reviews. When a new PR is created in your Bitbucket repository, a webhook triggers our AI to instantly analyze the code and post intelligent, actionable review comments directly to the pull request, helping your team maintain high-quality code with minimal effort.


What Makes This Special

🎯 Intelligent Reviews • AI-powered analysis that understands your code
🔗 Seamless Integration • Native Bitbucket webhook support
Instant Feedback • Automatic comment posting on pull requests
🚀 Production Ready • Built with NestJS for enterprise-grade reliability


🛠️ Getting Started

Prerequisites

Before diving in, make sure you have these tools ready:

Tool Version Purpose
Node.js v16+ Runtime environment
npm v8+ Package management
Docker latest SonarQube setup (optional)

🚀 Quick Installation

1. Clone and navigate to the project:

git clone <repository-url>
cd <repository-folder>

2. Install all dependencies:

npm install

3. Configure your environment by creating a .env file:

# Application Configuration
PORT=3000
NODE_ENV=develop

# API Credentials
API_TOKEN=<your_api_token>
GROQ_API_KEY=<your_groq_api_key>

💡 Pro Tip: Replace the placeholder values with your actual API credentials


🎮 Running the Application

Development Mode

npm run start:dev

Perfect for active development with hot reloading

Production Mode

# Build the project
npm run build

# Start in production mode
npm run start:prod

Optimized for performance and stability


🧪 Testing Suite

We believe in quality code, so we've included comprehensive testing:

# Unit tests
npm run test

# End-to-end tests
npm run test:e2e

# Coverage reports
npm run test:cov

🚀 Deployment

Ready to go live? Follow these simple steps:

1. Build your production bundle:

npm run build

2. Deploy the generated dist folder to your preferred hosting platform


📊 Code Quality with SonarQube (Optional)

Elevate your code quality with integrated SonarQube analysis:

1. Launch SonarQube using Docker:

docker-compose up -d

2. Access the dashboard at http://localhost:9000

3. Configure your project using the projectKey from .scannerwork/report-task.txt


📖 API Documentation

Explore our comprehensive API documentation with Swagger UI:

🌐 Live Documentation: http://localhost:3000/api/v1/docs

Interactive API explorer with real-time testing capabilities


🤝 Contributing

We love contributions! Here's how to get involved:

1. 🍴 Fork the repository
2. 🌿 Create your feature branch
3. 💫 Commit your amazing changes
4. 🚀 Push to your branch
5. 📬 Submit a pull request


📄 License

This project is licensed under the MIT License - feel free to use it however you'd like!


💬 Get in Touch

Questions? Ideas? Just want to chat about code?

👨‍💻 Author: Armando Isai Hernandez Ibarra


⭐ Star this repo if you found it helpful!

Built with ❤️ using NestJS and AI magic

About

AI Code Reviewer: AI-powered tool that auto-reviews Bitbucket PRs and posts actionable comments instantly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published