Skip to content

Commit 5a23a1a

Browse files
Try to avoid need for approvals
1 parent b17eac0 commit 5a23a1a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.claude/commands/review-local.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Steps:
44
1. Find the repo root with `git rev-parse --show-toplevel` (call it REPO_ROOT). The repos to check are at these known locations — no probing needed:
55
- REPO_ROOT itself
66
- Every direct subdirectory of REPO_ROOT/server/modules/
7-
- REPO_ROOT/server/testAutomation (if it exists)
7+
- REPO_ROOT/server/testAutomation
88
- Every direct subdirectory of REPO_ROOT/clientAPIs/
9-
2. For each repo, run the appropriate command:
9+
2. For each repo, run the appropriate command as a plain `git` command (no shell loops, conditionals, or compound commands — each Bash call must start with `git`):
1010
- With no arguments: `git -C <repo-path> diff HEAD -- . ':(exclude).idea' ':(exclude)server/configs'`
1111
- With $ARGUMENTS as a path filter: `git -C <repo-path> diff HEAD -- $ARGUMENTS ':(exclude).idea' ':(exclude)server/configs'`
1212

13-
Skip repos with no changes.
14-
3. If `git diff HEAD` fails for a repo (e.g., no commits exist yet), fall back to `git -C <repo-path> diff --cached -- . ':(exclude).idea' ':(exclude)server/configs'`.
13+
Skip repos with no changes. Skip repos where the git command exits non-zero (no git repo at that path).
14+
3. If `git diff HEAD` fails for a repo because no commits exist yet, fall back to `git -C <repo-path> diff --cached -- . ':(exclude).idea' ':(exclude)server/configs'`.
1515
4. For each file changed, if you need more context than the diff provides, read the relevant file(s).
1616

1717
Then read [review-phases.md](../review-phases.md) and perform a thorough review following the phases and output format defined there. In Phase 1, provide a list of the locally edited files that were analyzed, including their parent repo.

0 commit comments

Comments
 (0)