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

Function generatePreviewURL

pkg/cmd/issue/create/create.go:495–498  ·  view source on GitHub ↗
(apiClient *api.Client, baseRepo ghrepo.Interface, tb prShared.IssueMetadataState, projectsV1Support gh.ProjectsV1Support)

Source from the content-addressed store, hash-verified

493}
494
495func generatePreviewURL(apiClient *api.Client, baseRepo ghrepo.Interface, tb prShared.IssueMetadataState, projectsV1Support gh.ProjectsV1Support) (string, error) {
496 openURL := ghrepo.GenerateRepoURL(baseRepo, "issues/new")
497 return prShared.WithPrAndIssueQueryParams(apiClient, baseRepo, openURL, tb, projectsV1Support)
498}
499
500// deferredUpdateIssueOptions resolves the user-supplied --type / --parent /
501// --blocked-by / --blocking flags into the IDs that DeferredUpdateIssue

Callers 1

createRunFunction · 0.85

Calls 1

GenerateRepoURLFunction · 0.92

Tested by

no test coverage detected