Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • /aira Can you explain the algorithm of this function?

Automate Pull Request reviews with AI Review Assistant

It is possible to have the AI Review Assistant perform reviews of your pull requests automatically. To achieve that, you need to configure your pull request to create an automatic comment. This comment should begin with the standard /aira prefix, followed by a question requesting a review. You can accomplish this in two ways: by utilizing Default tasks from Bitbucket, or using the Checklist Buddy plugin for Bitbucket.

Using Default tasks

In your repository settings, go to Default tasks, then click on Add a default task. Then, fill in the Default task description with a prompt starting by /aira. See figure below for an example.

...

When you create a Pull Request, Bitbucket will create the task for you, and AI Review Assistant will respond automatically.

...

Using Checklist Buddy for Bitbucket

Checklist Buddy for Bitbucket is a plugin that automatically generates checklists of tasks and comments based on the specific context of a pull request. To utilize Checklist Buddy, you define a PRCHECKLIST file in your repository. This file outlines the comments and tasks you want Checklist Buddy to create, taking into account criteria relevant to your pull requests.

The AI Review Assistant will address all tasks and comments that begin with /aira. Below is an example of a PRCHECKLIST file:

Code Block
# PRCHECKLIST generated online at https://mibexsoftware.bitbucket.io/checklist-buddy-editor/

--target main +title+ AI Review
  --target main +comment+ /aira Please review the Code Style in this pull request
  --target main +comment+ /aira Please make a report about the presence of tests, and their relevance

Upon creation of a pull request to the main branch, these comments will be created, and AI Review Assistant will respond like in the image below.

...

FAQ

How can I disable AI Review Assistant for my Bitbucket Instance?

...