pr

package
v7.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHyperlink(url, text string) string

MakeHyperlink creates an ANSI hyperlink (OSC 8) for terminals that support it.

func ParseRepoFromURL

func ParseRepoFromURL(url string) (string, string, error)

ParseRepoFromURL extracts owner and repo name from GitHub PR URL. Example: "https://github.com/giantswarm/backstage/pull/1033" -> "giantswarm", "backstage"

func PrintTableHeader

func PrintTableHeader(w io.Writer)

PrintTableHeader prints the header for the PR status table.

func UpdateTable

func UpdateTable(w io.Writer, prStatuses []*PRStatus)

UpdateTable redraws the PR status table.

Types

type PRGroup added in v7.26.0

type PRGroup struct {
	DependencyName string
	PRs            []*PRInfo
	SearchQuery    string // Query to pass to existing search flow
}

PRGroup represents a group of related PRs based on dependency.

func GroupRenovatePRs added in v7.26.0

func GroupRenovatePRs(prs []*PRInfo) []*PRGroup

GroupRenovatePRs clusters PRs by dependency name. Returns groups sorted by PR count (descending). ALL groups are included, even those with only 1 PR.

type PRInfo added in v7.26.0

type PRInfo struct {
	Number int
	Owner  string
	Repo   string
	Title  string
	URL    string
}

PRInfo contains essential information about a PR.

type PRStatus

type PRStatus struct {
	Number     int
	Owner      string
	Repo       string
	Title      string
	URL        string
	Status     string
	LastUpdate time.Time
	// contains filtered or unexported fields
}

PRStatus tracks the status of a PR during processing.

func (*PRStatus) GetStatus

func (ps *PRStatus) GetStatus() string

GetStatus returns the current status of a PR in a thread-safe manner.

func (*PRStatus) UpdateStatus

func (ps *PRStatus) UpdateStatus(status string)

UpdateStatus updates the status of a PR in a thread-safe manner.

Jump to

Keyboard shortcuts

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