MCPcopy Create free account
hub / github.com/cli/cli / stubPR

Function stubPR

pkg/cmd/pr/checkout/checkout_test.go:122–124  ·  view source on GitHub ↗

repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch" prHead: "headOwner/headRepo:headBranch"

(repo, prHead string)

Source from the content-addressed store, hash-verified

120// repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch"
121// prHead: "headOwner/headRepo:headBranch"
122func stubPR(repo, prHead string) (ghrepo.Interface, *api.PullRequest) {
123 return _stubPR(repo, prHead, 123, "PR title", "OPEN", false)
124}
125
126func _stubPR(repo, prHead string, number int, title string, state string, isDraft bool) (ghrepo.Interface, *api.PullRequest) {
127 defaultBranch := ""

Calls 1

_stubPRFunction · 0.85

Tested by

no test coverage detected