name: ai-reviews on: pull_request: types: [opened, synchronize] jobs: review: name: Review PR runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. # Default: 1 fetch-depth: 1 # The base URL for the GitHub instance that you are trying to clone from, will use # environment defaults to fetch from the same instance that the workflow is # running from unless specified. Example URLs are https://github.com or # https://my-ghes-server.example.com github-server-url: ${{ vars.GIT_SERVER_URL }} - name: Review code uses: kekxv/AiReviewPR@v0.0.3 with: model: ${{ vars.OLLAMA_MODEL }} host: ${{ vars.OLLAMA_HOST }} ai_token: ${{ secrets.AI_TOKEN }} REVIEW_PULL_REQUEST: true LANGUAGE: English