| 18 | } |
| 19 | |
| 20 | type AutolinkCreateRequest struct { |
| 21 | IsAlphanumeric bool `json:"is_alphanumeric"` |
| 22 | KeyPrefix string `json:"key_prefix"` |
| 23 | URLTemplate string `json:"url_template"` |
| 24 | } |
| 25 | |
| 26 | func (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") |
nothing calls this directly
no outgoing calls
no test coverage detected