mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 05:50:23 +08:00
f5cbc3e3b8
Followup 560e8aff75
The linked commit allowed oneboxing private GitHub PRs,
issues, commits, and so on, but it didn't actually allow
oneboxing the root repo e.g https://github.com/discourse/discourse-reactions
We didn't have an engine for this, we were relying on OpenGraph
tags on the HTML rendering of the page like we do with other
oneboxes.
To fix this, we needed a new github engine for repos specifically.
Also, this commit adds a `data-github-private-repo` attribute to
PR, issue, and repo onebox HTML so we have an indicator of
whether the repo was private, which can be used for theme components
and so on.
147 lines
6.9 KiB
Plaintext
147 lines
6.9 KiB
Plaintext
{
|
|
"id": 7569578,
|
|
"node_id": "MDEwOlJlcG9zaXRvcnk3NTY5NTc4",
|
|
"name": "discourse",
|
|
"full_name": "discourse/discourse",
|
|
"private": false,
|
|
"owner": {
|
|
"login": "discourse",
|
|
"id": 3220138,
|
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjMyMjAxMzg=",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/3220138?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/discourse",
|
|
"html_url": "https://github.com/discourse",
|
|
"followers_url": "https://api.github.com/users/discourse/followers",
|
|
"following_url": "https://api.github.com/users/discourse/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/discourse/orgs",
|
|
"repos_url": "https://api.github.com/users/discourse/repos",
|
|
"events_url": "https://api.github.com/users/discourse/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/discourse/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
},
|
|
"html_url": "https://github.com/discourse/discourse",
|
|
"description": "A platform for community discussion. Free, open, simple.",
|
|
"fork": false,
|
|
"url": "https://api.github.com/repos/discourse/discourse",
|
|
"forks_url": "https://api.github.com/repos/discourse/discourse/forks",
|
|
"keys_url": "https://api.github.com/repos/discourse/discourse/keys{/key_id}",
|
|
"collaborators_url": "https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}",
|
|
"teams_url": "https://api.github.com/repos/discourse/discourse/teams",
|
|
"hooks_url": "https://api.github.com/repos/discourse/discourse/hooks",
|
|
"issue_events_url": "https://api.github.com/repos/discourse/discourse/issues/events{/number}",
|
|
"events_url": "https://api.github.com/repos/discourse/discourse/events",
|
|
"assignees_url": "https://api.github.com/repos/discourse/discourse/assignees{/user}",
|
|
"branches_url": "https://api.github.com/repos/discourse/discourse/branches{/branch}",
|
|
"tags_url": "https://api.github.com/repos/discourse/discourse/tags",
|
|
"blobs_url": "https://api.github.com/repos/discourse/discourse/git/blobs{/sha}",
|
|
"git_tags_url": "https://api.github.com/repos/discourse/discourse/git/tags{/sha}",
|
|
"git_refs_url": "https://api.github.com/repos/discourse/discourse/git/refs{/sha}",
|
|
"trees_url": "https://api.github.com/repos/discourse/discourse/git/trees{/sha}",
|
|
"statuses_url": "https://api.github.com/repos/discourse/discourse/statuses/{sha}",
|
|
"languages_url": "https://api.github.com/repos/discourse/discourse/languages",
|
|
"stargazers_url": "https://api.github.com/repos/discourse/discourse/stargazers",
|
|
"contributors_url": "https://api.github.com/repos/discourse/discourse/contributors",
|
|
"subscribers_url": "https://api.github.com/repos/discourse/discourse/subscribers",
|
|
"subscription_url": "https://api.github.com/repos/discourse/discourse/subscription",
|
|
"commits_url": "https://api.github.com/repos/discourse/discourse/commits{/sha}",
|
|
"git_commits_url": "https://api.github.com/repos/discourse/discourse/git/commits{/sha}",
|
|
"comments_url": "https://api.github.com/repos/discourse/discourse/comments{/number}",
|
|
"issue_comment_url": "https://api.github.com/repos/discourse/discourse/issues/comments{/number}",
|
|
"contents_url": "https://api.github.com/repos/discourse/discourse/contents/{+path}",
|
|
"compare_url": "https://api.github.com/repos/discourse/discourse/compare/{base}...{head}",
|
|
"merges_url": "https://api.github.com/repos/discourse/discourse/merges",
|
|
"archive_url": "https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}",
|
|
"downloads_url": "https://api.github.com/repos/discourse/discourse/downloads",
|
|
"issues_url": "https://api.github.com/repos/discourse/discourse/issues{/number}",
|
|
"pulls_url": "https://api.github.com/repos/discourse/discourse/pulls{/number}",
|
|
"milestones_url": "https://api.github.com/repos/discourse/discourse/milestones{/number}",
|
|
"notifications_url": "https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}",
|
|
"labels_url": "https://api.github.com/repos/discourse/discourse/labels{/name}",
|
|
"releases_url": "https://api.github.com/repos/discourse/discourse/releases{/id}",
|
|
"deployments_url": "https://api.github.com/repos/discourse/discourse/deployments",
|
|
"created_at": "2013-01-12T00:25:55Z",
|
|
"updated_at": "2024-07-17T05:24:55Z",
|
|
"pushed_at": "2024-07-17T06:18:53Z",
|
|
"git_url": "git://github.com/discourse/discourse.git",
|
|
"ssh_url": "git@github.com:discourse/discourse.git",
|
|
"clone_url": "https://github.com/discourse/discourse.git",
|
|
"svn_url": "https://github.com/discourse/discourse",
|
|
"homepage": "https://www.discourse.org",
|
|
"size": 654594,
|
|
"stargazers_count": 41215,
|
|
"watchers_count": 41215,
|
|
"language": "Ruby",
|
|
"has_issues": false,
|
|
"has_projects": false,
|
|
"has_downloads": true,
|
|
"has_wiki": false,
|
|
"has_pages": false,
|
|
"has_discussions": false,
|
|
"forks_count": 8210,
|
|
"mirror_url": null,
|
|
"archived": false,
|
|
"disabled": false,
|
|
"open_issues_count": 59,
|
|
"license": {
|
|
"key": "gpl-2.0",
|
|
"name": "GNU General Public License v2.0",
|
|
"spdx_id": "GPL-2.0",
|
|
"url": "https://api.github.com/licenses/gpl-2.0",
|
|
"node_id": "MDc6TGljZW5zZTg="
|
|
},
|
|
"allow_forking": true,
|
|
"is_template": false,
|
|
"web_commit_signoff_required": false,
|
|
"topics": [
|
|
"discourse",
|
|
"ember",
|
|
"forum",
|
|
"javascript",
|
|
"postgresql",
|
|
"rails",
|
|
"ruby"
|
|
],
|
|
"visibility": "public",
|
|
"forks": 8210,
|
|
"open_issues": 59,
|
|
"watchers": 41215,
|
|
"default_branch": "main",
|
|
"permissions": {
|
|
"admin": false,
|
|
"maintain": true,
|
|
"push": true,
|
|
"triage": true,
|
|
"pull": true
|
|
},
|
|
"custom_properties": {
|
|
|
|
},
|
|
"organization": {
|
|
"login": "discourse",
|
|
"id": 3220138,
|
|
"node_id": "MDEyOk9yZ2FuaXphdGlvbjMyMjAxMzg=",
|
|
"avatar_url": "https://avatars.githubusercontent.com/u/3220138?v=4",
|
|
"gravatar_id": "",
|
|
"url": "https://api.github.com/users/discourse",
|
|
"html_url": "https://github.com/discourse",
|
|
"followers_url": "https://api.github.com/users/discourse/followers",
|
|
"following_url": "https://api.github.com/users/discourse/following{/other_user}",
|
|
"gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
|
|
"starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
|
|
"subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
|
|
"organizations_url": "https://api.github.com/users/discourse/orgs",
|
|
"repos_url": "https://api.github.com/users/discourse/repos",
|
|
"events_url": "https://api.github.com/users/discourse/events{/privacy}",
|
|
"received_events_url": "https://api.github.com/users/discourse/received_events",
|
|
"type": "Organization",
|
|
"site_admin": false
|
|
},
|
|
"network_count": 8210,
|
|
"subscribers_count": 901
|
|
}
|