github

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchURLFromBranchName added in v0.1.28

func BranchURLFromBranchName(branchName string, parentBranchName string) (string, error)

func PRNumFromNumOrURL added in v0.1.46

func PRNumFromNumOrURL(numOrURL string) int

func PRNumFromPRURL added in v0.1.10

func PRNumFromPRURL(prURL string) int

func PRStrFromPRNum added in v0.1.46

func PRStrFromPRNum(prNum int) string

func PRStrFromPRURL

func PRStrFromPRURL(prURL string) string

Types

type PrBody

type PrBody struct {
	PreviousPR  int
	NextPRs     []int
	Description string
}

func NewPrBody

func NewPrBody(rawPrBody string) (*PrBody, error)

func (*PrBody) ToMarkdown added in v0.1.46

func (p *PrBody) ToMarkdown() string

type PullRequest

type PullRequest struct {
	BaseRefName string
	HeadRefName string
	State       string
	URL         string
	Number      int
	Title       string
	Body        string
}

func FetchPRByNum added in v0.1.46

func FetchPRByNum(prNum int) (*PullRequest, error)

func FetchPRByURLOrNum added in v0.1.5

func FetchPRByURLOrNum(prURLOrNum string) (*PullRequest, error)

func FetchPRForBranch added in v0.1.5

func FetchPRForBranch(branchName string) (*PullRequest, error)

func GetPRDataForIgnoredBranch added in v0.1.16

func GetPRDataForIgnoredBranch(branchName string) *PullRequest

Jump to

Keyboard shortcuts

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