diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-05 01:06:18 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-05 01:06:18 -0500 |
| commit | 3f491e73cdbdc03d652bce81fdfc68eabb313213 (patch) | |
| tree | 772f0e109ac0eda3a789f0d83bb8737234dd0ed9 /tests/test-pearl-menu.el | |
| parent | 951abea0b2ed07d71676cd4d10ff7c6ca50d1390 (diff) | |
| download | pearl-3f491e73cdbdc03d652bce81fdfc68eabb313213.tar.gz pearl-3f491e73cdbdc03d652bce81fdfc68eabb313213.zip | |
feat(comments): fetch an issue's full comment thread
pearl-fetch-all-comments pages the whole comment connection for the issue at point and replaces its Comments subtree with the complete set. It's bound to C-; L f c and in the transient. The bulk list and view fetch showed only the newest pearl-list-comments-shown comments with an N/M+ overflow marker, so anything past the cap couldn't surface in the buffer.
The replacement is surgical: pearl--replace-comments-subtree swaps only the Comments subtree, so the issue title, drawer, and description body keep any unsaved edits, and the new heading carries an exact N/N count. It refuses when the issue has unpushed comment edits (reusing the save model's dirty scanner) so the fetch can't clobber an unsent change.
Diffstat (limited to 'tests/test-pearl-menu.el')
| -rw-r--r-- | tests/test-pearl-menu.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-pearl-menu.el b/tests/test-pearl-menu.el index 8d23023..825d6bc 100644 --- a/tests/test-pearl-menu.el +++ b/tests/test-pearl-menu.el @@ -76,7 +76,9 @@ menu entry that still points at it fails here." pearl-switch-account pearl-copy-issue-url ;; set-default-view: the new Views-group entry - pearl-set-default-view)) + pearl-set-default-view + ;; fetch the full comment thread for the issue at point + pearl-fetch-all-comments)) (should (memq expected cmds))))) (provide 'test-pearl-menu) |
