github

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 10 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 PRNumFromPRURL added in v0.1.10

func PRNumFromPRURL(prURL string) int

func PRStrFromPRURL

func PRStrFromPRURL(prURL string) string

Types

type PrBody

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

func NewPrBody

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

func (*PrBody) String

func (p *PrBody) String() string

type PullRequest

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

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