MCPcopy
hub / github.com/cli/cli / generatePreviewURL

Function generatePreviewURL

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

Source from the content-addressed store, hash-verified

430}
431
432func generatePreviewURL(apiClient *api.Client, baseRepo ghrepo.Interface, tb prShared.IssueMetadataState, projectsV1Support gh.ProjectsV1Support) (string, error) {
433 openURL := ghrepo.GenerateRepoURL(baseRepo, "issues/new")
434 return prShared.WithPrAndIssueQueryParams(apiClient, baseRepo, openURL, tb, projectsV1Support)
435}
436
437// deferredUpdateIssueOptions resolves the user-supplied --type / --parent /
438// --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