MCPcopy
hub / github.com/cli/cli / stubPR

Function stubPR

pkg/cmd/pr/checkout/checkout_test.go:109–111  ·  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

107// repo: either "baseOwner/baseRepo" or "baseOwner/baseRepo:defaultBranch"
108// prHead: "headOwner/headRepo:headBranch"
109func stubPR(repo, prHead string) (ghrepo.Interface, *api.PullRequest) {
110 return _stubPR(repo, prHead, 123, "PR title", "OPEN", false)
111}
112
113func _stubPR(repo, prHead string, number int, title string, state string, isDraft bool) (ghrepo.Interface, *api.PullRequest) {
114 defaultBranch := ""

Calls 1

_stubPRFunction · 0.85

Tested by

no test coverage detected