(filePath string)
| 415 | } |
| 416 | |
| 417 | func resolveWorkflowRoot(filePath string) string { |
| 418 | clean := filepath.Clean(filePath) |
| 419 | needle := filepath.Join(".github", "workflows") |
| 420 | needleWithSep := needle + string(filepath.Separator) |
| 421 | if idx := strings.Index(clean, needleWithSep); idx >= 0 { |
| 422 | return clean[:idx+len(needle)] |
| 423 | } |
| 424 | return filepath.Dir(clean) |
| 425 | } |
no outgoing calls
no test coverage detected