Skip to content

Recenzo is a JS/TS library for custom AI powered Bitbucket code reviews. Fetch PR diffs, analyze changes, and automate reviewer feedback to enforce standards.

License

Notifications You must be signed in to change notification settings

AlanTaranti/recenzo

Recenzo

npm version install size npm bundle size

Maintenance Contributor Covenant License

Quality Gate Status Code Smells Coverage Reliability Rating Security Rating Maintainability Rating Vulnerabilities

Recenzo is a JS/TS library for custom AI powered Bitbucket code reviews. Fetch PR diffs, analyze changes, and automate reviewer feedback to enforce standards.

Table of Contents

  1. Installation
  2. Usage
  3. Contributing
  4. License

Installation

Use your favorite package manager to install recenzo.

npm:

npm install @taranti/recenzo

yarn:

yarn add @taranti/recenzo

Usage

Environment Variables

Before using Recenzo, you need to set up the following environment variables:

You can set these in your environment or use a .env file.

Node

import recenzo from '@taranti/recenzo';

// Pull request information
const pullRequestInfo = {
  workspace: 'your-workspace',
  repository: 'your-repository',
  prNumber: 123,
  ignoredFiles: ['package-lock.json'], // optional
};

// Code review instructions
const codeReviewInstruction = {
  commentLanguage: 'en', // Language for comments (e.g., 'en', 'fr', etc.)
  instruction: 'Please review this code for best practices and potential bugs.',
};

// Options (optional)
const options = {
  dryRun: false, // Set to true to preview without posting comments
};

// Review the pull request
// The options parameter is optional and can be omitted
await recenzo.reviewPullRequest(pullRequestInfo, codeReviewInstruction, options);

// Or without options
await recenzo.reviewPullRequest(pullRequestInfo, codeReviewInstruction);

Contributing

We welcome contributions to Recenzo! Please see our Contributing Guidelines for details on:

  • Project architecture and organization
  • Build and configuration instructions
  • Testing guidelines and requirements
  • Development workflow
  • How to submit pull requests

For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Recenzo is a JS/TS library for custom AI powered Bitbucket code reviews. Fetch PR diffs, analyze changes, and automate reviewer feedback to enforce standards.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks