Skip to content

Commit d12dad7

Browse files
Improve line numbers in code review comments (#1333)
1 parent 0fe04f9 commit d12dad7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.claude/commands/review-pr.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Steps:
77
2. Run `gh pr diff $ARGUMENTS` to get the full diff.
88
3. For each file changed, if you need more context than the diff provides, read the relevant file(s).
99

10+
**IMPORTANT — Line Numbers**: Do NOT use line numbers from the diff output file (e.g., from a saved tool result). Those are offsets within the diff text, not actual source line numbers. To cite an accurate line number in a finding, read the actual source file and find the line there. If you cannot confirm a line number, omit it and reference the code by method or function name instead.
11+
1012
Then perform a thorough review in this exact order:
1113

1214
---

0 commit comments

Comments
 (0)