# Description: # - Deepseek code review with GitHub Actions # REF: # - https://github.com/marketplace/actions/checkout name: Code Review on: pull_request_target: types: - opened # Triggers when a PR is opened - reopened # Triggers when a PR is reopened - synchronize # Triggers when a commit is pushed to the PR - labeled # Triggers when a label is added to the PR # fix: GraphQL: Resource not accessible by integration (addComment) error permissions: pull-requests: write jobs: setup-deepseek-review: runs-on: ubuntu-latest name: Code Review # Make sure the code review happens only when the PR has the label 'ai review' if: contains(github.event.pull_request.labels.*.name, 'ai review') steps: - name: Deepseek Code Review uses: hustcer/deepseek-review@develop with: max-length: 10000 chat-token: ${{ secrets.CHAT_TOKEN }}