/codereview-ai

Review Bitbucket branch using Open AI

Primary LanguageJavaScript

codereview-ai

Review Bitbucket branch using Open AI

Pre-requisites

Setup

  • Create a .env file in the root (or rename the existing .env.example by removing the .example part)
  • Add or edit the .env file configurations

Example of .env file

BITBUCKET_API_CLIENT_ID=<PUT HERE YOUR BITBUCKET API CLIENT ID>
BITBUCKET_API_CLIENT_SECRET=<PUT HERE YOUR BITBUCKET API CLIENT SECRET>
BITBUCKET_WORKSPACE=ismailnguyen
BITBUCKET_REPOSITORY=my-super-fake-repository

OPENAI_API_KEY=<PUT HERE YOUR OPEN API KEY>

Usage

Run the following command in terminal:

npm run review "<PUT HERE THE BRANCH NAME TO REVIEW>"

Example

npm run review "feature/23094-my-super-dummy-feature"