pr

package
v7.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 5 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 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