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

Struct AutolinkCreateRequest

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected