Code review: recurse into submodules (or aggregate per-submodule diffs)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, typescript
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Read packages/shared/review-core.test.ts for the existing gitlink behavior and packages/server/inbox-pulls.ts for the review diff options. Then trace the directory-target review path mentioned in the issue to assess the minimal action proposal. Done could mean adding that action, or designing and implementing recursive or aggregate submodule diffs; agree on scope first and test with initialized and uninitialized submodules, including dirty work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens today
On a superproject with submodules, code review shows only the gitlink pointer:
diff --git a/deps/module b/deps/module
-Subproject commit 1111111111111111111111111111111111111111
+Subproject commit 2222222222222222222222222222222222222222-dirty
Keeping gitlinks as normal text hunks is the right call (they're annotatable, and packages/shared/review-core.test.ts covers it), but the content inside the submodule is invisible. There is no --recurse-submodules anywhere in the review path, and packages/server/inbox-pulls.ts explicitly passes --no-recurse-submodules. The -dirty suffix tells you the submodule has uncommitted work, but not what it is.
Concrete case I hit: a superproject with more than a dozen submodules. Running git submodule foreach shows a handful of modified source files inside one submodule, while the review page shows exactly one changed line for it.
Why it matters
"Superproject + one repo per submodule" is a common enterprise monorepo layout. A review surface that can't reach the submodule content forces reviewers to open N reviews one at a time (in remote/fixed-port mode only one review can be open at a time), and the parent review can't answer the question reviewers actually ask: what did this change do?
Proposal — any subset of these would help
-
Minimal, reuses what exists: a "Review this submodule" action on a gitlink row. When a diff contains a
Subproject commitchange (especially-dirty), offer a button that opens that submodule's own review through the existing directory-target path —/plannotator-review <submodule-path>already works today. Keeps one decision per repo, no new diff plumbing. -
--recurse-submodulesin the review diff, with the file tree grouped per submodule, each group resolving its own base/default branch. Annotations would need to be scoped by repository, not just by path, or the same relative path in two submodules collides. -
Aggregate mode: for each changed submodule, run its own diff and merge the results into one review with prefixed paths (
deps/module/src/...), one decision for the whole change set. This is what actually scales to a superproject with many submodules.
Constraints worth designing around
--recurse-submodulesonly covers committed submodule commits. The common case — uncommitted work inside a submodule (-dirty) — needs that submodule's owngit diff, so option 2 alone doesn't solve it.- Submodules can be uninitialized (no work tree), shallow, or on a detached HEAD;
.gitmodulesURLs may be unreachable. - Staging/unstaging across repositories changes what a "file action" means in the tree.
- Remote/fixed-port mode allows one open review at a time, which is what makes per-submodule reviews awkward and an aggregate view valuable.
I'm happy to test a branch against a many-submodule superproject (git 2.x, macOS + Linux) if you want to try one of these.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 649
- Merge trung bình
- 16 giờ 1 phút
- Pull request đã merge (30 ngày)
- 756
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
backnotprop/plannotator#4132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
backnotprop/plannotator#4051 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PR description is hidden when a PR review opens on a phoneCó thể đã có người làm @flipcyde101 đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
backnotprop/plannotator#3667 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của backnotprop/plannotator
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
review-followup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
griffinwork40/agent-afk#5387 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CodeManufactoryLLC/Code60#358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
android:plan ios:plan main:plan packages:learn
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày