Documentation
¶
Index ¶
Constants ¶
const ( ModeAll = "all" ModeImport = "import" ModeReputation = "reputation" )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run reads IMPORT_MODE env var and dispatches to the appropriate workflow. Supported modes: "all" (default), "import" (skip deep reputation), "reputation" (deep reputation only).
func RunDeepReputation ¶ added in v0.18.0
RunDeepReputation scores all stale contributors globally using round-robin token rotation across all active installations. Single task, no parallelism.
Types ¶
type RepoWork ¶ added in v0.33.0
RepoWork represents a unique repo to import, with all tenants that track it.
func BuildWorkList ¶ added in v0.33.0
func BuildWorkList(rows []tenant.ImportWorkRow) []RepoWork
BuildWorkList deduplicates tenant_repo rows by (org, repo), grouping tenant refs under each unique repo. Preserves exact org/repo casing.
func ShardRepos ¶ added in v0.33.0
ShardRepos deterministically assigns repos to a task shard. Sorts by lowercase(repo), then lowercase(org) as tiebreaker, then assigns every taskCount-th item to the given taskIndex. Guarantees: union of all shards == input, no gaps, no overlaps.