# Богаче Oneboxes для репозиториев GitHub с дополнительными метаданными

**URL:** <https://meta.discourse.org/t/richer-github-repo-oneboxes-with-more-metadata/414029>\
**Category:** Feature\
**Tags:** onebox\
**Created:** [06.Октябрь.2026 13:40:03 UTC](https://meta.discourse.org/t/richer-github-repo-oneboxes-with-more-metadata/414029 "2026-10-06T13:40:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [06.Октябрь.2026 13:41:53 UTC](https://meta.discourse.org/t/richer-github-repo-oneboxes-with-more-metadata/414029/2 "2026-10-06T13:41:53Z")

</div>

Создан PR:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/f/7/6f7dac935c52345bb591d49f2901728f3251c43b.png)

> <https://github.com/discourse/discourse/pull/44289>
>
> GitHub repository oneboxes currently show the repository title, thumbnail and de…scription, but no repository metadata. Add a compact footer with the primary language and nonzero star and fork counts, similar to GitHub's pinned repository cards.
> 
> Counts below 1,000 remain exact. Larger counts use one decimal place and Discourse's localized compact-number units and decimal separator, for example \`195.9k stars\` and \`17.0k forks\`. Count labels use localized singular/plural forms. Missing or blank languages and zero or missing counts are omitted, and an empty footer is not rendered.
> 
> The footer uses the existing GitHub repository API response without additional requests. Styles follow Discourse's BEM conventions and wrap on narrow screens. A subdued bracketed snapshot note sits to the right of the counts, uses Discourse local-date markup, and retains its original timestamp when the cached onebox is reused. Decorative inline SVG icons follow the existing GitHub onebox templates.
> 
> Validation:
> \- 150 examples passed across GitHub repository, folder, pull request, issue and commit oneboxes, GitHub API handling and onebox previews.
> \- Tests cover compact-number boundaries, localization, singular labels, missing metadata, escaping, production onebox sanitization, snapshot timestamps/cache reuse and a single API request.
> \- Ruby, SCSS, YAML and translation lint checks passed.
> \- \`git diff --check\` passed.
> 
> Browser/theme combinations have not been visually verified.

---

_[View the full topic](https://meta.discourse.org/t/richer-github-repo-oneboxes-with-more-metadata/414029)._
