You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If worktrees aren't suitable, you can use `gh pr checkout <number>` (this switches your current branch — only if you have no uncommitted work).
51
+
If worktrees aren't suitable, you can use `gh pr checkout <number>` (this switches your current branch — only if you have no uncommitted work). Run the rest of the review from `/tmp/review-<number>`.
52
52
53
53
If checkout isn't possible (e.g., external fork), use `gh api` to fetch file contents:
54
54
@@ -64,7 +64,11 @@ gh api repos/{owner}/{repo}/contents/{path}?ref={head-branch} --jq '.content' |
64
64
65
65
### If Branch mode (no number)
66
66
67
-
Run these commands in parallel:
67
+
First, fetch the base branch to ensure the remote ref is current:
68
+
69
+
0.**Fetch base**: `git fetch origin <base>`
70
+
71
+
Then run these commands in parallel:
68
72
69
73
1.**Current branch**: `git branch --show-current`
70
74
2.**Commits on branch**: `git log origin/<base>..HEAD --oneline`
@@ -102,7 +106,7 @@ Before diving into details, build a mental model:
102
106
3.**Group changed files** by module/package to identify which areas are affected
103
107
4.**Identify the primary goal** (feature, refactor, bugfix, etc.)
104
108
5.**Note cross-cutting concerns** (e.g., a rename that touches many files vs. substantive logic changes)
105
-
6.**Check existing feedback** (PR mode): inspect both inline comments (step 1.5) and PR-level review bodies (step 1.5b) so you don't duplicate feedback already given
109
+
6.**Check existing feedback** (PR mode): inspect both inline comments (Step 1, item 5) and PR-level review bodies (Step 1, item 5b) so you don't duplicate feedback already given
106
110
107
111
## Step 4: Review Each Changed File (Multi-Pass)
108
112
@@ -190,7 +194,7 @@ If the branch isn't checked out locally (e.g., external fork in PR mode), skip t
190
194
191
195
Output a structured review using the format below. Use the **PR template** or **Branch template** for the overview depending on the mode.
192
196
193
-
Write the review to a **temporary markdown file** (e.g. `review-<pr-or-branch>.md` or `.review-output.md`) so other agents or tools can consume it. Do not commit this file; treat it as ephemeral.
197
+
Write the review to a **temporary markdown file outside the repository** (e.g. `/tmp/review-<pr-or-branch>.md`) so other agents or tools can consume it without polluting `git status`. Do not commit this file; treat it as ephemeral.
0 commit comments