Add DeepWork Review GitHub Action #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |