Retracted: v0.4.1 and v0.4.2 were published with a document that did not belong in a
public repository. v0.4.1 also lacks the cosign check in self-update.
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Package github talks to the GitHub API: repository discovery, size
estimates for the disk budget and the activity feed that names commits a
clone can no longer see.
Token returns the GitHub token from GITHUB_TOKEN, GH_TOKEN or the gh CLI,
or "" when none is available. Public repositories work without one, but
with a much lower API rate limit.
Rewrites reads the repository activity feed for force pushes and branch
deletions. The Before SHA of each entry is a commit no clone fetches by
default, but GitHub still serves it by SHA. maxPages caps the API calls
per activity type (100 events per page).
type Rewrite struct {
Before string `json:"before"`
After string `json:"after,omitempty"`
Ref string `json:"ref"`
Type string `json:"type"`
Actor string `json:"actor,omitempty"`
Timestamp time.Time `json:"timestamp"`
}
Rewrite is a ref update that made commits unreachable on the server: a
force push replaced Before with After, or a branch deletion removed Before.