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

Method IsPullRequest

pkg/cmd/issue/artifact/client/client.go:65–71  ·  view source on GitHub ↗
(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

63}
64
65func (c *artifactClient) IsPullRequest(repo ghrepo.Interface, number int) (bool, error) {
66 issue, err := issueShared.FindIssueOrPR(c.httpClient, repo, number, []string{"number"})
67 if err != nil {
68 return false, err
69 }
70 return issue.IsPullRequest(), nil
71}
72
73func (c *artifactClient) UploadTarget(repo ghrepo.Interface, number int) (*UploadTarget, error) {
74 issue, err := issueShared.FindIssueOrPR(c.httpClient, repo, number, []string{"number", "repository"})

Callers

nothing calls this directly

Calls 1

IsPullRequestMethod · 0.65

Tested by

no test coverage detected