An open API service indexing awesome lists of open source software.

https://github.com/nriothrreion/gitlab-reviewer

A Gitlab webhook receiver that calls Claude Code to review the MR
https://github.com/nriothrreion/gitlab-reviewer

agentic-workflow claude-code gitlab webhook webhook-receiver

Last synced: about 2 months ago
JSON representation

A Gitlab webhook receiver that calls Claude Code to review the MR

Awesome Lists containing this project

README

          

# Gitlab Reviewer

This is a Gitlab webhook receiver that can automatically call Claude Code to review the code you just pushed to a Merge Request.

## Prerequisite

Have a Claude Code installed on your machine, with a Gitlab MCP server.

For the MCP server, [zereight/gitlab-mcp](https://github.com/zereight/gitlab-mcp) is recommended.

## Getting Started

1. Clone the repo

```
git clone https://github.com/NriotHrreion/gitlab-reviewer.git
```

2. Install npm dependencies

```
npm install
```

3. Create a `.env` file in the project root and fill in the 3 environment variables

```
cp .env.example .env
vi .env
```

4. Run the service

```
node index
```

5. Create a new webhook in Gitlab

In your Gitlab instance, go to `Your Project > Settings > Webhooks`, click "Add new webhook". Fill in the `URL` field with the following pattern:

```
http://:5010/webhook
```

Then fill in the `Secret token` field with the `GITLAB_WEBHOOK_SECRET` you just set in the `.env` file, check the option "Merge request events", and click "Add webhook".

## License

[MIT](./LICENSE)