Skip to content

1.0.22

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Aug 18:34
6686830
Fix GitHub trending star/fork counts showing as 0 (#40)

The list itself now loads (thanks to the per-row resilience fix), but
every item showed "★ 0" — the star/fork count selector
(.Link--muted.d-inline-block.mr-3) is matching nothing, while the
"stars today" badge selector still works fine. That points at GitHub
having renamed the Primer CSS utility classes on those count links,
which are exactly the kind of styling classes GitHub churns over time.

Read the counts from the stargazers/forks link's href instead
(a[href$=stargazers], a[href$=forks|members]) — a stable, semantic
URL rather than a utility class combo — falling back to the old
class-based selector if that ever comes back.

Co-authored-by: Claude <noreply@anthropic.com>