GitHub Action
SmartCoder Code Review
v1.1.0
Latest version
Example .github/workflows/code-review.yml
name: Code review
on:
pull_request:
types:
- opened
- synchronize
permissions: write-all
jobs:
code-review:
runs-on: ubuntu-latest
steps:
- name: Code Review
uses: xuxhing/code-review-action@latest
with:
GITHUB_TOKEN: ${{ github.token }}
SMART_CODER_API_URL: ${{ vars.SMART_CODER_API_URL }}
SMART_CODER_API_KEY: ${{ secrets.SMART_CODER_API_KEY }}
exclude: "yarn.lock,dist/**"
description: "GitHub token to interact with the repository."
description: "SmartCoder api url."
required: true
description: "API key for SmartCoder."
required: true
description: "Glob patterns to exclude files from the diff analysis"
required: false