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

Method IsPullRequest

pkg/cmd/issue/artifact/client/client.go:25–25  ·  view source on GitHub ↗

IsPullRequest reports whether number in repo is a pull request rather than an issue, with one lookup.

(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

23 // IsPullRequest reports whether number in repo is a pull request rather
24 // than an issue, with one lookup.
25 IsPullRequest(repo ghrepo.Interface, number int) (bool, error)
26 // UploadTarget is IsPullRequest for a command that uploads files with
27 // --attach. Its one lookup also returns what an upload needs to know
28 // about repo.

Callers 11

TestIsPullRequestFunction · 0.95
displayIssueResultsFunction · 0.65
closeRunFunction · 0.65
apiCloseFunction · 0.65
apiReopenFunction · 0.65
deleteRunFunction · 0.65
transferRunFunction · 0.65
IsPullRequestMethod · 0.65
UploadTargetMethod · 0.65
CheckIssueFunction · 0.65
editRunFunction · 0.65

Implementers 2

ArtifactClientMockpkg/cmd/issue/artifact/client/client_m
artifactClientpkg/cmd/issue/artifact/client/client.g

Calls

no outgoing calls

Tested by 1

TestIsPullRequestFunction · 0.76