/ChatGPT-CodeReview-Gitlab

A demo by chatGPT in GitLab review code

Primary LanguageTypeScript

Installation

$ pnpm i --frozen-lockfile

Running

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Replace ChatGPT Token

Replace YOU_ARE_CHATGPT_TOKEN in this project with your own ChatGPT token.

Configure GitLab in the project

Generate an Access Token in the GitLab project and check the "read and write" permissions. Configure the webhook in the GitLab project, and select the Merge request event.

After deploying the service, ChatGPT can comment on code when a Merge Request is created in the corresponding GitLab project.