aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-menu.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-05 01:06:18 -0500
committerCraig Jennings <c@cjennings.net>2026-06-05 01:06:18 -0500
commit3f491e73cdbdc03d652bce81fdfc68eabb313213 (patch)
tree772f0e109ac0eda3a789f0d83bb8737234dd0ed9 /tests/test-pearl-menu.el
parent951abea0b2ed07d71676cd4d10ff7c6ca50d1390 (diff)
downloadpearl-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.el4
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)