Skip to content

Repository pin card

GitHub lets a profile pin six repositories. This card is one repository as an image, so a README can show as many as it likes, in whatever order it likes.

The repository pin card

?username=octocat&repo=hello-world&show_owner=true
OptionWhat it is
usernameThe owner’s GitHub login
repoThe repository name, without the owner

show adds a line under the description, as a comma-separated list: prs_authored, prs_commented, prs_reviewed, issues_authored, issues_commented. Each one is counted for the repository, not for the user.

OptionValuesWhat it does
show_ownertrue falsePut the owner’s login above the repository name
showthe list aboveExtra counts to draw
show_iconstrue falseDraw an icon beside each count
description_lines_counta numberHow many lines the description wraps to
browser_renderingtrue falseLet the browser wrap the description instead of the renderer
number_formatshort long1.5k or 1500
text_boldtrue falseBold the values
line_heighta numberSpace between the lines

Plus the common options every card takes, and locale.

The renderer wraps the description itself and truncates what does not fit, so the card is the same width everywhere. browser_rendering=true hands that job to the browser instead, which reads better when the description is long and worse when the card sits somewhere narrow.