types

package
v0.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PR

type PR struct {
	Author      string        `csv:"author"`
	TimeToMerge time.Duration `csv:"time_to_merge_duration"`
	MergedAt    time.Time     `csv:"merged_at"`
	Repo        string        `csv:"repo"`
	Number      int           `csv:"number"`
	Reviews     string        `csv:"reviews"`
}

type RepoSignal

type RepoSignal struct {
	// User Info
	Repo string `csv:"repo"`

	// Weighted Information
	WeightedTotal       float64 `csv:"weighted_total"`
	WeightedPRs         float64 `csv:"weighted_prs"`
	WeightedReviews     float64 `csv:"weighted_reviews"`
	WeightedPRShare     float64 `csv:"weighted_pr_share"`
	WeightedReviewShare float64 `csv:"weighted_review_share"`

	// Raw Stats
	NumPRs          int `csv:"num_prs"`
	NumReviews      int `csv:"num_reviews"`
	NumContributors int `csv:"num_contributors"`

	// Scoring Use Only
	TotalTimeToMerge time.Duration `csv:"-"`

	// Merge Information
	AverageDaysToMerge float64 `csv:"average_days_to_merge"`
}

type UserSignal

type UserSignal struct {
	// User Info
	User string `csv:"user"`

	// Weighted Information
	WeightedTotal                float64 `csv:"weighted_total"`
	WeightedPRs                  float64 `csv:"weighted_prs"`
	WeightedReviews              float64 `csv:"weighted_reviews"`
	WeightedPRShare              float64 `csv:"weighted_pr_share"`
	WeightedReviewShare          float64 `csv:"weighted_review_share"`
	WeightedDistributionModifier float64 `csv:"weighted_distribution_modifier"`

	// Raw Stats
	NumPRs     int `csv:"num_prs"`
	NumReviews int `csv:"num_reviews"`

	// Scoring Use Only
	TotalTimeToMerge time.Duration `csv:"-"`

	// Merge Information
	AverageDaysToMerge float64 `csv:"average_days_to_merge"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL