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

Struct AutolinkCreateRequest

pkg/cmd/repo/autolink/create/http.go:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20type AutolinkCreateRequest struct {
21 IsAlphanumeric bool `json:"is_alphanumeric"`
22 KeyPrefix string `json:"key_prefix"`
23 URLTemplate string `json:"url_template"`
24}
25
26func (a *AutolinkCreator) Create(repo ghrepo.Interface, request AutolinkCreateRequest) (*shared.Autolink, error) {
27 url, err := safeurl.JoinPathWithHostPrefix(ghinstance.RESTPrefix(repo.RepoHost()), "repos", repo.RepoOwner(), repo.RepoName(), "autolinks")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected