From e89fa25d1aded1ca8b03a54f4102ada8fbf72faf Mon Sep 17 00:00:00 2001 From: Urgau Date: Wed, 11 Feb 2026 00:07:01 +0100 Subject: [PATCH] Add documentation for triagebot "View all comments" feature --- src/SUMMARY.md | 1 + src/triagebot/view-all-comments-link.md | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/triagebot/view-all-comments-link.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 714d1312..6e28d871 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -45,6 +45,7 @@ - [Rustc Commit Tracking](./triagebot/rustc-commit-list.md) - [Shortcuts](./triagebot/shortcuts.md) - [Triagebot Dashboard](./triagebot/triage-dashboard.md) + - [View all comments link](./triagebot/view-all-comments-link.md) - [Zulip Commands](./triagebot/zulip-commands.md) - [Zulip Meeting Management](./triagebot/zulip-meeting.md) - [Zulip Notifications](./triagebot/zulip-notifications.md) diff --git a/src/triagebot/view-all-comments-link.md b/src/triagebot/view-all-comments-link.md new file mode 100644 index 00000000..560a8bc1 --- /dev/null +++ b/src/triagebot/view-all-comments-link.md @@ -0,0 +1,24 @@ +# View all comments link + +"View all comments" links are simple hyperlinks automatically added by triagebot to a PR or issue description. They link to triagebot comments viewer for GitHub issues and PRs. + +As its name implies, these links load all the comments (and review comments) from GitHub and display them all at once. This is in contrast to the GitHub UI, where one has to click on "Load More" multiple times to see the full conversation. + +## Configuration + +This feature is enabled on a repository by having a `[view-all-comments-link]` table in `triagebot.toml`: + +```toml +[view-all-comments-link] +threshold = 25 # 20 comments by default +exclude-prs = true # false by default +exclude-issues = false # false by default +``` + +All the options are optional. + +The "View all comments" links will point to triagebot's `/gh-comments` endpoint - our GitHub's comments viewer. + +## Implementation + +See [`src/handlers/view_all_comments_link.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/view_all_comments_link.rs).