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