From 499bba129c842c00c1a28d85bc044ab609aee44e Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 21 Sep 2026 17:55:06 -0400 Subject: Add discussions Discussions are served from GitHub's older server-rendered HTML, with no embeddedData JSON to read, so the scraper walks the DOM the way the pull request and wiki code does. A discussion's timeline opens with its own post and continues with its comments, each carrying its replies nested inside it, which is where the recursion in _discussionComment.eta comes from. Categories, upvotes, and the answer a Q&A discussion is marked with all come along. Only what GitHub renders up front is shown: neither the next page of discussions nor the replies it hides behind a "Show N previous replies" button are fetched, so a comment says how many replies it is missing. Co-Authored-By: Claude Opus 5 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 45c94cf..e3c2819 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Implemented: - Directory listing and file browsing (`tree`/`blob`) - Commit history (but this often results in 429 Too Many Requests on Cloudflare) - Issue and pull request lists and search +- Discussions - Release lists and details - Wiki - User and organization profiles @@ -22,10 +23,11 @@ Not implemented: - Issue, pull request, and commit details - Issue and pull request status and labels - Code search (GitHub requires signing in) -- Pagination (only the first page of issues, pull requests, commits, releases, - branches, and tags is shown) +- Pagination (only the first page of issues, pull requests, discussions, + commits, releases, branches, and tags is shown, and likewise only the replies + GitHub sends with a discussion rather than behind a "show more" button) - Blame, contributors, stargazer/fork lists, network graphs, and insights -- Actions, checks, projects, packages, discussions, and gists +- Actions, checks, projects, packages, and gists - Profile tabs other than the overview (repositories, projects, packages, people, sponsoring) - Anything requiring an account: signing in, notifications, starring, -- cgit v1.3.1