Prerequisite: Callstack account is required for reviewer to work. Create account here

Managed Service

PR Reviewer can be run as a managed service by Callstack.ai. This service is fully managed by Callstack and requires no setup on your end other than creating a Callstack account. For each review, we create a branch new instance where your codebase is cloned and analyzed. Managed instance represents a hardened environment that does not mount any persistent storage, all data is present only in memory and is destroyed immediately after the review is done.

Self-Service

You can run PR Reviewer directly in your Gitlab Pipelines by including the following entry in your .gitlab-cy.yml file. By including this entry, PR Reviewer will create a manual trigger job in your pipeline for each commit to a merge request. Callstack.ai will receive webhook from Gitlab and start the review process automatically.

.gitlab-ci.yml
callstack-review:
  image: callstackai/cal:latest
  allow_failure: true
  needs: []
  variables:
    RUN_CONFIG: ""
  script: |
    /reviewer \
    --dir $CI_PROJECT_DIR \
    --id $CI_PIPELINE_ID \
    --token "$RUN_TOKEN" \
    --config "$RUN_CONFIG"
  when: manual
  rules:
    - if: "$CI_PIPELINE_SOURCE == 'merge_request_event'"