mirror of
https://github.com/hustcer/deepseek-review.git
synced 2026-05-13 05:16:05 +08:00
* feat: Add example of triggering code review by adding ai review label * feat: Add example of triggering code review by adding ai review label * feat: Add example of triggering code review by adding ai review label
31 lines
940 B
YAML
31 lines
940 B
YAML
# 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 }}
|