GitLab MR Reviewer

by Killian0812

9 downloads Not rated yet

About

# GitLab MR Reviewer An AI-powered GitLab Merge Request code reviewer that integrates with Anthropic's Claude models to provide automated code reviews and checklist compliance evaluation. ## Features - Automatically reviews code when a merge request is opened or updated - Analyzes code for style, quality, security…

Explore

- Automatically reviews code when a merge request is opened or updated
- Analyzes code for style, quality, security issues, and best practices
- Evaluates MRs against a customized checklist based on team standards
- Provides detailed feedback on each file
- Gives an overall assessment with a final recommendation (APPROVE, APPROVE WITH MINOR CHANGES, REQUEST CHANGES)
- Can be triggered manually or via GitLab webhooks
- Sends notifications to Slack (optional)

- Node.js (v14 or later)
- npm or yarn
- GitLab account with API access
- Anthropic Claude API key

GITLAB_API_URL=https://gitlab.example.com/api/v4
GITLAB_PRIVATE_TOKEN=your_private_token_here
GITLAB_WEBHOOK_SECRET=your_webhook_secret_here

CLAUDE_API_KEY=your_claude_api_key_here
CLAUDE_MODEL=claude-3-opus-20240229

PORT=3000
NODE_ENV=development

LOG_LEVEL=info

An AI-powered GitLab Merge Request code reviewer that integrates with Anthropic's Claude models to provide automated code reviews and checklist compliance evaluation.

Features

- Automatically reviews code when a merge request is opened or updated
- Analyzes code for style, quality, security issues, and best practices
- Evaluates MRs against a customized checklist based on team standards
- Provides detailed feedback on each file
- Gives an overall assessment with a final recommendation (APPROVE, APPROVE WITH MINOR CHANGES, REQUEST CHANGES)
- Can be triggered manually or via GitLab webhooks
- Sends notifications to Slack (optional)

Prerequisites

- Node.js (v14 or later)
- npm or yarn
- GitLab account with API access
- Anthropic Claude API key

Installation

1. Clone the repository:

   git clone <repository-url>
cd gitlab-mr-reviewer

2. Install dependencies:

   npm install

3. Copy the example environment file and update it with your configuration:

   cp .env.example .env

Edit the .env file with your GitLab and Claude credentials.

Configuration

Update the .env file with the following variables:

```

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.