Versions in this module Expand all Collapse all v0 v0.8.0 Oct 29, 2025 Changes in this version + func CountBotPRs(prs []PRSummary) int + func IsBot(author string) bool + type PRDataWithAnalysis struct + Analysis turn.Analysis + PRData cost.PRData + func FetchPRDataWithAnalysisViaTurnserver(ctx context.Context, prURL string, token string, updatedAt time.Time) (PRDataWithAnalysis, error) + type ProgressCallback func(queryName string, page int, prCount int) + type SimpleFetcher struct + DataSource string + Token string + func (f *SimpleFetcher) FetchPRData(ctx context.Context, prURL string, updatedAt time.Time) (cost.PRData, error) v0.7.0 Oct 27, 2025 Changes in this version + func CalculateActualTimeWindow(prs []PRSummary, requestedDays int) (actualDays int, hitLimit bool) + func CountOpenPRsInOrg(ctx context.Context, org, token string) (int, error) + func CountOpenPRsInRepo(ctx context.Context, owner, repo, token string) (int, error) + func CountUniqueAuthors(prs []PRSummary) int + func FetchPRDataViaTurnserver(ctx context.Context, prURL string, token string, updatedAt time.Time) (cost.PRData, error) + type PRSummary struct + Author string + Number int + Owner string + Repo string + UpdatedAt time.Time + func FetchPRsFromOrg(ctx context.Context, org string, since time.Time, token string) ([]PRSummary, error) + func FetchPRsFromRepo(ctx context.Context, owner, repo string, since time.Time, token string) ([]PRSummary, error) + func SamplePRs(prs []PRSummary, sampleSize int) []PRSummary v0.4.0 Oct 22, 2025 Changes in this version + func FetchPRData(ctx context.Context, prURL string, token string) (cost.PRData, error) + func FetchPRDataWithDefaults(ctx context.Context, prURL string) (cost.PRData, error) + func PRDataFromPRX(prData *prx.PullRequestData) cost.PRData