Skip to main content

Module collect

Module collect 

Source
Expand description

Account snapshots collected from GitHub through the GitHub CLI, separate from interpretation. Only public data is read, so a workflow’s built-in token is enough.

Structs§

GhCli
Runs queries through gh api graphql with whatever authentication gh has, including GH_TOKEN in GitHub Actions.

Enums§

CollectionError
Why a collection produced no snapshot. Each message names the operator repair.

Traits§

GraphqlClient
Runs one GitHub GraphQL query with string variables and returns its data object.

Functions§

collect_account_snapshot
Collect one account’s public snapshot: its public owned repositories, the public repositories GitHub counts it as contributing to, GitHub’s color for each of their languages, and daily contribution counts from the day it was created through the latest date GitHub reports.