Skip to main content

Module github

Module github 

Source

Structs§

GhClient

Functions§

embed_avatars
Replace remote avatar URLs with embedded data URIs so the outputs are fully self-contained (and render in places that block remote images).
enrich_clusters
Fill in login / avatar_url on clusters. Noreply emails resolve offline; the rest are looked up via the commits API (one representative commit per cluster), in parallel.
fetch_avatar
Fetch a GitHub avatar (e.g. an org/owner) and return it as a data URI.
fetch_profiles
Fetch GitHub user profiles for every resolved login: improves display names (“phue” → “Patrick Hüther”) and yields company affiliations.
find_token
Get a GitHub token: $GITHUB_TOKEN / $GH_TOKEN, else gh auth token.
normalize_company
Clean up the free-text GitHub company field into a usable group name. Handles common patterns like “@seqeralabs”, “QBiC @qbicsoftware”, and multi-affiliation strings (“Seqera | SciLifeLab” → “Seqera”).
parse_noreply
Parse GitHub noreply addresses: 12345+login@users.noreply.github.com or the older login@users.noreply.github.com.