(sourceRef string)
| 40 | } |
| 41 | |
| 42 | func parseGithubSourceSkillPath(sourceRef string) string { |
| 43 | sourceRef = strings.TrimSpace(sourceRef) |
| 44 | if sourceRef == "" { |
| 45 | return "" |
| 46 | } |
| 47 | _, refPart, ok := strings.Cut(sourceRef, "@") |
| 48 | if !ok { |
| 49 | return "" |
| 50 | } |
| 51 | _, skillPath, hasPath := strings.Cut(refPart, ":") |
| 52 | if !hasPath { |
| 53 | return "" |
| 54 | } |
| 55 | return strings.TrimSpace(skillPath) |
| 56 | } |
| 57 | |
| 58 | func (s *SkillLibraryService) importSkillFromUploadFile(ctx context.Context, req *SkillImportRequest) (*SkillImportResult, error) { |
| 59 | return s.importSkillFromUploadFileWithPermissions(ctx, req, nil, 0) |
no outgoing calls
no test coverage detected