Skip to content

Commit 96b3462

Browse files
authored
Merge pull request #1006 from Urgau/triagebot-view-all-comments
Add documentation for triagebot "View all comments" feature
2 parents ecd99b3 + e89fa25 commit 96b3462

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
- [Rustc Commit Tracking](./triagebot/rustc-commit-list.md)
4646
- [Shortcuts](./triagebot/shortcuts.md)
4747
- [Triagebot Dashboard](./triagebot/triage-dashboard.md)
48+
- [View all comments link](./triagebot/view-all-comments-link.md)
4849
- [Zulip Commands](./triagebot/zulip-commands.md)
4950
- [Zulip Meeting Management](./triagebot/zulip-meeting.md)
5051
- [Zulip Notifications](./triagebot/zulip-notifications.md)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# View all comments link
2+
3+
"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.
4+
5+
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.
6+
7+
## Configuration
8+
9+
This feature is enabled on a repository by having a `[view-all-comments-link]` table in `triagebot.toml`:
10+
11+
```toml
12+
[view-all-comments-link]
13+
threshold = 25 # 20 comments by default
14+
exclude-prs = true # false by default
15+
exclude-issues = false # false by default
16+
```
17+
18+
All the options are optional.
19+
20+
The "View all comments" links will point to triagebot's `/gh-comments` endpoint - our GitHub's comments viewer.
21+
22+
## Implementation
23+
24+
See [`src/handlers/view_all_comments_link.rs`](https://github.com/rust-lang/triagebot/blob/HEAD/src/handlers/view_all_comments_link.rs).

0 commit comments

Comments
 (0)