Hack Review

AI-powered Pull Request Reviews for your GitHub repositories

About Hack Review

Hack Review is a GitHub App designed to streamline your code review process. It automatically analyzes your pull requests using artificial intelligence to provide instant feedback on potential bugs, style inconsistencies, and other common issues, helping your team maintain high code quality and accelerate development cycles.

How it works

  1. When a pull request is opened on your repository, Hack Review receives a webhook notification from GitHub.
  2. The app then fetches the relevant files and changes from the pull request.
  3. It constructs a detailed prompt, including the PR title, body, and the diffs of all changed files.
  4. This prompt is sent to Hack Club's AI API for intelligent review.
  5. Finally, Hack Review posts the AI-generated review as a concise comment/review directly on your pull request on GitHub.

Setup Guide(Full App Coming Soon!)

Follow these steps to integrate Hack Review with your GitHub workflow:

1. Create a GitHub App

2. Set up the environment

3. Install the dependencies

uv sync

4. Run the app

python app.py

System Prompt Customization

The core behavior of the AI reviewer is governed by a configurable system prompt. You can locate and modify this prompt within the data/System_Prompt.md file to fine-tune the AI's review style and focus.

How to contribute

We welcome contributions to Hack Review! If you'd like to help improve the project:

  1. Fork the repository on GitHub.
  2. Create a new branch for your features or bug fixes.
  3. Implement your changes.
  4. Open a pull request detailing your contributions.

Screenshots

Screenshots of the Project