regression

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

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.

Documentation

Overview

Package regression runs a keyword-filtered diff of merged PRs between two release tags to surface candidate causes for a regression report.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	// contains filtered or unexported fields
}

Diff runs regression-window analysis.

func NewDiff

func NewDiff(c PRLister) *Diff

NewDiff constructs a Diff backed by the given PRLister.

func (*Diff) Run

func (d *Diff) Run(ctx context.Context, installationID int64, repo, fromTag, toTag string, keywords []string) ([]gh.MergedPR, error)

Run returns PRs merged between fromTag and toTag whose title or body contains at least one of the given keywords (case-insensitive). If keywords is nil or empty, all PRs are returned unfiltered.

type PRLister

type PRLister interface {
	ListMergedPRsBetween(ctx context.Context, installationID int64, repo, from, to string) ([]gh.MergedPR, error)
}

PRLister is the subset of the github client this package needs.

type PRSummary

type PRSummary struct {
	Number int    `json:"number"`
	Title  string `json:"title"`
	URL    string `json:"url"`
}

PRSummary is a compact shape for downstream handlers that do not need the full MergedPR fields.

Jump to

Keyboard shortcuts

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