Skip to content

Show it a video you love. Get a new video in the same style. An AI crew (Claude Code or Codex) plans, builds and reviews it with you.

Claude review: always use main's report format

許元豪16235b1cc0d3
diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml
index 5b74650..b1721b8 100644
--- a/.github/workflows/claude-review.yml
+++ b/.github/workflows/claude-review.yml
@@ -24,12 +24,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1
+ # The action switches to the PR branch next: keep main's review format, so a PR can't change how it gets reviewed
+ - run: cp .github/claude-review.md "$RUNNER_TEMP/claude-review.md"
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
trigger_phrase: '@claude'
- use_sticky_comment: true
claude_args: |
--max-turns 8
- --append-system-prompt "Follow .github/claude-review.md exactly: read it first, then review the pull request diff and reply in that format."
+ --add-dir ${{ runner.temp }}
+ --append-system-prompt "Follow ${{ runner.temp }}/claude-review.md exactly (not the copy in the repo): read it first, then review the pull request diff and reply in that format."