Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/repos/repos?apiVersion=2026-03-10#get-a-repository
What part(s) of the article would you like to see updated?
Add REST API documentation for discussions
https://api.github.com/repos/community/community has:
And you can visit something like:
https://api.github.com/repos/community/community/discussions/176086/comments
which yields some json like:
[
{
"id": 14683292,
"node_id": "DC_kwDOEfmk4M4A4Ayc",
"html_url": "https://github.com/orgs/community/discussions/176086#discussioncomment-14683292",
"parent_id": null,
"child_comment_count": 0,
"repository_url": "community/community",
"discussion_id": 8996253,
"author_association": "NONE",
"user": {
"login": "armydy",
"id": 238113827,
"node_id": "U_kgDODjFUIw",
"avatar_url": "https://avatars.githubusercontent.com/u/238113827?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/armydy",
"html_url": "https://github.com/armydy",
"followers_url": "https://api.github.com/users/armydy/followers",
"following_url": "https://api.github.com/users/armydy/following{/other_user}",
"gists_url": "https://api.github.com/users/armydy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/armydy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/armydy/subscriptions",
"organizations_url": "https://api.github.com/users/armydy/orgs",
"repos_url": "https://api.github.com/users/armydy/repos",
"events_url": "https://api.github.com/users/armydy/events{/privacy}",
"received_events_url": "https://api.github.com/users/armydy/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"created_at": "2025-10-15T06:09:38Z",
"updated_at": "2025-10-15T06:09:39Z",
"body": "-我参加Hacktoberfest!",
"reactions": {
"url": "https://api.github.com/repos/community/community/discussions/comments/14683292/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
},
...
If you visit https://api.github.com/repos/community/community/discussions/comments/14683292/reactions, you get:
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest",
"status": "404"
}
https://docs.github.com/en/search?search-overlay-input=discussions&query=discussions&toplevel=REST+API does not yield anything remotely useful.
Additional information
I'm trying to figure out what happened to a comment. I received a notification for it, but when I followed the link from the notification, I get the discussion minus the comment.
I can't tell if @minanagehsalalma wrote it and then deleted it, or something else... the notification url was: https://github.com/orgs/community/discussions/176086#discussioncomment-16816602
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/repos/repos?apiVersion=2026-03-10#get-a-repository
What part(s) of the article would you like to see updated?
Add REST API documentation for discussions
https://api.github.com/repos/community/community has:
And you can visit something like:
https://api.github.com/repos/community/community/discussions/176086/comments
which yields some json like:
[ { "id": 14683292, "node_id": "DC_kwDOEfmk4M4A4Ayc", "html_url": "https://github.com/orgs/community/discussions/176086#discussioncomment-14683292", "parent_id": null, "child_comment_count": 0, "repository_url": "community/community", "discussion_id": 8996253, "author_association": "NONE", "user": { "login": "armydy", "id": 238113827, "node_id": "U_kgDODjFUIw", "avatar_url": "https://avatars.githubusercontent.com/u/238113827?v=4", "gravatar_id": "", "url": "https://api.github.com/users/armydy", "html_url": "https://github.com/armydy", "followers_url": "https://api.github.com/users/armydy/followers", "following_url": "https://api.github.com/users/armydy/following{/other_user}", "gists_url": "https://api.github.com/users/armydy/gists{/gist_id}", "starred_url": "https://api.github.com/users/armydy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/armydy/subscriptions", "organizations_url": "https://api.github.com/users/armydy/orgs", "repos_url": "https://api.github.com/users/armydy/repos", "events_url": "https://api.github.com/users/armydy/events{/privacy}", "received_events_url": "https://api.github.com/users/armydy/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "created_at": "2025-10-15T06:09:38Z", "updated_at": "2025-10-15T06:09:39Z", "body": "-我参加Hacktoberfest!", "reactions": { "url": "https://api.github.com/repos/community/community/discussions/comments/14683292/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } }, ...If you visit https://api.github.com/repos/community/community/discussions/comments/14683292/reactions, you get:
{ "message": "Not Found", "documentation_url": "https://docs.github.com/rest", "status": "404" }https://docs.github.com/en/search?search-overlay-input=discussions&query=discussions&toplevel=REST+API does not yield anything remotely useful.
Additional information
I'm trying to figure out what happened to a comment. I received a notification for it, but when I followed the link from the notification, I get the discussion minus the comment.
I can't tell if @minanagehsalalma wrote it and then deleted it, or something else... the notification url was: https://github.com/orgs/community/discussions/176086#discussioncomment-16816602