mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
f5cbc3e3b8
Followup 560e8aff75e4bde67bb162e8fdea52e704a19f81 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.