Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Automated AI Code Reviewer

An intelligent CI/CD pipeline tool that automatically reviews GitHub Pull Requests using OpenAI's GPT-4.


πŸ“– About The Project

Code reviews are essential but time-consuming. This project automates the first line of defense in the code review process. By utilizing GitHub Actions and the OpenAI API, this tool listens for new Pull Requests, fetches the code diffs, analyzes the logic for bugs, security flaws, and performance issues, and posts a professional review directly as a PR comment.

Key Features:

  • ⚑ Automated Triggering: Runs instantly when a PR is opened or updated.
  • 🧠 Context-Aware Analysis: Uses GPT-4 to understand complex code changes.
  • πŸ›‘οΈ Secure: Uses environment variables and GitHub Secrets so API keys are never exposed.
  • πŸ—οΈ Clean Architecture: Built with Object-Oriented Python, Type Hinting, and logging.

πŸ“‚ Repository Structure

ai-pr-reviewer/
β”œβ”€β”€ .github/workflows/
β”‚   └── ai-review.yml       # CI/CD Pipeline Configuration
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ ai_agent.py         # OpenAI API Handler
β”‚   β”œβ”€β”€ github_manager.py   # PyGitHub API Handler
β”‚   └── main.py             # Execution & Logging logic
β”œβ”€β”€ requirements.txt        # Python Dependencies
└── README.md

About

An intelligent CI/CD pipeline tool that automatically reviews GitHub Pull Requests using OpenAI's GPT-4.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages