-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.35 KB
/
example.yml
File metadata and controls
41 lines (36 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: DeepWork Review
on:
pull_request:
types: [opened, synchronize]
# Prevent concurrent runs on the same PR
concurrency:
group: deepwork-review-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
deepwork-review:
runs-on: ubuntu-latest
# Don't re-run on commits pushed by the action itself
if: github.actor != 'deepwork-action[bot]'
# Required permissions
permissions:
contents: write # push auto-fix commits to the PR branch
pull-requests: write # post inline PR review comments
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
# Fetch full history so DeepWork can diff against the base branch
# Set too `100` or something high but safe if you have a huge git history
fetch-depth: 0
# Use the merge ref so we operate on the PR's head commit
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run DeepWork Review
uses: Unsupervisedcom/deepwork-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# Optional overrides:
# model: claude-opus-4-6
# max_turns: '50'
# commit_message: 'chore: apply DeepWork review suggestions'