gh

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchPRInfo

func BatchPRInfo(dir string, branches []string) (map[string]*PRInfo, error)

BatchPRInfo fetches PR info for multiple branches in a single gh call.

Types

type PRInfo

type PRInfo struct {
	Number       int    `json:"number"`
	Title        string `json:"title"`
	Branch       string `json:"headRefName"`
	State        string `json:"state"`          // OPEN, MERGED, CLOSED
	ReviewStatus string `json:"reviewDecision"` // APPROVED, CHANGES_REQUESTED, REVIEW_REQUIRED, ""
	Mergeable    string `json:"mergeable"`      // MERGEABLE, CONFLICTING, UNKNOWN
	Additions    int    `json:"additions"`
	Deletions    int    `json:"deletions"`
	URL          string `json:"url"`
	Checks       []checkRun
}

func (*PRInfo) CIStatus

func (p *PRInfo) CIStatus() string

CIStatus returns the aggregate CI status: "pass", "fail", "pending", or "none".

Jump to

Keyboard shortcuts

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