pr

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDependencyName

func ExtractDependencyName(title string) string
func MakeHyperlink(text, url string) string

func ParseRepoFromURL

func ParseRepoFromURL(url string) (owner, repo string, err error)

func PrintTableHeader

func PrintTableHeader(w *os.File)

func UpdateTable

func UpdateTable(w *os.File, entries []StatusEntry)

Types

type PRGroup

type PRGroup struct {
	Key   string
	PRs   []PRInfo
	Count int
}

func GroupByDependency

func GroupByDependency(prs []PRInfo) []PRGroup

func GroupByRepo

func GroupByRepo(prs []PRInfo) []PRGroup

type PRInfo

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

type PRStatus

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

func NewPRStatus

func NewPRStatus() *PRStatus

func (*PRStatus) Add

func (s *PRStatus) Add(pr PRInfo) int

func (*PRStatus) FormatSummary

func (s *PRStatus) FormatSummary() string

func (*PRStatus) Len

func (s *PRStatus) Len() int

func (*PRStatus) Snapshot

func (s *PRStatus) Snapshot() []StatusEntry

func (*PRStatus) Summary

func (s *PRStatus) Summary() (merged, failed, skipped int)

func (*PRStatus) Update

func (s *PRStatus) Update(idx int, state StatusState, detail string)

type StatusEntry

type StatusEntry struct {
	PR     PRInfo
	State  StatusState
	Detail string
}

type StatusState

type StatusState int
const (
	StatusPending StatusState = iota
	StatusChecking
	StatusApproving
	StatusMerging
	StatusMerged
	StatusAlreadyMerged
	StatusAutoMerge
	StatusFailed
	StatusSkipped
	StatusConflict
)

func (StatusState) String

func (s StatusState) String() string

Jump to

Keyboard shortcuts

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