Raico code review
Raico is the AI code reviewer built into Codinamo. It reads the change a pull request proposes and reports findings on the files and lines they are about. Each finding has a severity and can be resolved or dismissed, and a project can refuse to merge while findings are open.
Raico is configured per organization. Reviews are charged per use.
Set up reviews for a project
A review runs as part of the pipeline that validates the pull request, chosen by its target branch (see Pull requests). Two things must be in place:
-
The branch’s validation pipeline contains the Raico Review action, placed after the step that checks out the repository.
-
Review pull requests is on for the organization. It is on by default.
Point the action at the checked out repository and at the range Codinamo records for the pull request:
review: action.RAICO_REVIEW({
params: {
mode: "${RAICO_MODE}",
repositoryPath: "${checkout.repository_path}",
fromRef: "${RAICO_BASE_SHA}",
toRef: "${RAICO_HEAD_SHA}",
apiKey: "${RAICO_API_KEY}"
}
})
RAICO_BASE_SHA, RAICO_HEAD_SHA, RAICO_MODE, and RAICO_API_KEY are supplied by Codinamo when it starts the review. RAICO_MODE carries the reviewer chosen for the organization; an action whose Reviewer is fixed to LITE or PRO uses that reviewer instead. RAICO_API_KEY is the credential of the review and exists only in runs that Codinamo starts for a pull request.
Choose the validation pipeline of a branch with codi:
codi repository branch update PROJECT main --validation-pipeline PIPELINE
Organization settings
Open the organization and select Raico in the navigation. The Settings tab holds:
-
Review pull requests: turns Raico on or off for the whole organization. Turning it off stops new reviews; existing reviews stay visible.
-
Reviewer: Raico Lite or Raico Pro. Each option shows its approximate price per review.
-
Daily review limit: the number of reviews allowed per day. Leave it empty for no limit.
-
Budget: the most the organization spends on reviews, per day or per month. Leave it empty for no budget.
Select Save changes to apply them. Changing these settings requires permission to update the organization, which the Organization Owner and Organization Administrator roles include. Other members see the settings read-only.
Raico Lite or Raico Pro
Raico Lite is fast and cost-effective, suited to everyday pull requests. Raico Pro reads more context and finds subtler problems, at a higher price per review.
The choice applies to new reviews. Every review in a pull request is labeled Lite or Pro, so it stays clear which reviewer produced it.
When a review runs
Raico reviews a pull request when it is opened and again each time a commit is added to it from the pipeline editor or with codi pipeline update. A new commit replaces a review that is still waiting or running for the previous one.
The review starts the validation pipeline with the permissions of the user who opened the pull request or added the commit. If that user cannot run the pipeline, the review fails and says so.
Read the findings
A reviewed pull request shows Raico in three places:
-
Validations lists Raico review with its state and the number of findings that are resolved, won’t fix, and open.
-
Activity has one entry per completed review, with the reviewed commit and every finding.
-
Changes shows the findings of the latest review under the lines they refer to, and each file tab shows its count of open findings.
Each finding carries one of four severities: critical, major, minor, or suggestion.
Resolve or dismiss a finding
Open findings of the latest review offer two actions while the pull request is open:
-
Resolve marks the finding as handled.
-
Won’t fix dismisses a finding that does not apply or will not be addressed.
Both require write access to the repository, and both record who closed the finding. A finding closed either way no longer counts as open.
Statuses follow the code from one review to the next. A finding the next review reports again keeps its open or won’t fix status. An open finding the next review no longer reports is closed as outdated. A resolved finding that is reported again opens again.
Require resolved findings to merge
In the project settings, enable Require resolved Raico findings to merge, or use codi:
codi project update PROJECT --require-raico-findings-resolved true
With this option, a pull request merges only after the Raico review of its latest commit finished without open findings. A review that is waiting, running, or failed also blocks the merge, and the pull request states the reason.
Pull requests that never had a Raico review are not affected, and the requirement stops blocking merges while Review pull requests is off for the organization.
Limits and budget
The daily review limit and the daily budget reset at 00:00 UTC. A monthly budget resets on the first day of the month at 00:00 UTC. The Settings tab shows how much of each is used.
When the limit is reached, new reviews fail with daily review limit reached. When the budget is used up, they fail with review budget reached. Reviews refused this way cost nothing.
Projects that require resolved findings stay blocked while reviews are refused. To unblock them, wait for the next period, raise the limit or budget, or turn the requirement off for the project.
The budget is checked when a review is requested, so the review that crosses the budget still completes and is charged.
Cost
The Cost tab of the organization’s Raico page reports one month at a time, selected in Period. It shows the number of reviews, the average cost per review, the total cost, and one row per pull request with its project, reviewer, review count, cost per review, and cost. Viewing it requires permission to view organization costs.
Raico has no subscription and is paid per use. The price of a review follows the size of the change and the reviewer that ran it, so the amounts shown next to Raico Lite and Raico Pro are approximations. Reviews are charged with the billing period they ran in, and an invoice that includes them shows the Raico amount separately from builds.
See Billing and plans for invoices and Pull requests for the review and merge flow.
See Codi commands for the codi project update options.