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

Function pullRequestError

pkg/cmd/issue/artifact/shared/shared.go:274–276  ·  view source on GitHub ↗
(repo ghrepo.Interface, number int)

Source from the content-addressed store, hash-verified

272}
273
274func pullRequestError(repo ghrepo.Interface, number int) error {
275 return fmt.Errorf("%s#%d is a pull request; artifacts are only supported on issues", ghrepo.FullName(repo), number)
276}
277
278// CheckType refuses an artifact whose type this version of gh doesn't know. A
279// new type can need handling gh doesn't have, so commands whose behavior

Callers 2

CheckIssueFunction · 0.85
CheckUploadTargetFunction · 0.85

Calls 2

FullNameFunction · 0.92
ErrorfMethod · 0.65

Tested by

no test coverage detected