mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 14:26:21 +08:00
FEATURE: Handle oneboxes for complex GitHub URLs (#18474)
GitHub PR URLs can link to a commit of the PR, a comment or a review discussion.
This commit is contained in:
44
spec/fixtures/onebox/githubpullrequest_comment.response
vendored
Normal file
44
spec/fixtures/onebox/githubpullrequest_comment.response
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"url": "https://api.github.com/repos/discourse/discourse/issues/comments/21597425",
|
||||
"html_url": "https://github.com/discourse/discourse/pull/1253#issuecomment-21597425",
|
||||
"issue_url": "https://api.github.com/repos/discourse/discourse/issues/1253",
|
||||
"id": 21597425,
|
||||
"node_id": "MDEyOklzc3VlQ29tbWVudDIxNTk3NDI1",
|
||||
"user": {
|
||||
"login": "discoursebot",
|
||||
"id": 3698800,
|
||||
"node_id": "MDQ6VXNlcjM2OTg4MDA=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/3698800?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/discoursebot",
|
||||
"html_url": "https://github.com/discoursebot",
|
||||
"followers_url": "https://api.github.com/users/discoursebot/followers",
|
||||
"following_url": "https://api.github.com/users/discoursebot/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/discoursebot/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/discoursebot/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/discoursebot/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/discoursebot/orgs",
|
||||
"repos_url": "https://api.github.com/users/discoursebot/repos",
|
||||
"events_url": "https://api.github.com/users/discoursebot/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/discoursebot/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"created_at": "2013-07-26T02:05:57Z",
|
||||
"updated_at": "2013-07-26T02:05:57Z",
|
||||
"author_association": "NONE",
|
||||
"body": "You've signed the CLA, jamesaanderson. Thank you! This pull request is ready for review.\n",
|
||||
"reactions": {
|
||||
"url": "https://api.github.com/repos/discourse/discourse/issues/comments/21597425/reactions",
|
||||
"total_count": 0,
|
||||
"+1": 0,
|
||||
"-1": 0,
|
||||
"laugh": 0,
|
||||
"hooray": 0,
|
||||
"confused": 0,
|
||||
"heart": 0,
|
||||
"rocket": 0,
|
||||
"eyes": 0
|
||||
},
|
||||
"performed_via_github_app": null
|
||||
}
|
Reference in New Issue
Block a user