(target)
| 727 | } |
| 728 | |
| 729 | function pathRoot(target) { |
| 730 | const resolved = resolve(target) |
| 731 | const match = resolved.match(/^[A-Za-z]:[\\/]/) |
| 732 | if (match) { |
| 733 | return match[0] |
| 734 | } |
| 735 | return resolved.startsWith('/') ? '/' : resolved |
| 736 | } |
| 737 | |
| 738 | function getApprovalRequirement({ prompt, config, workspaceDir }) { |
| 739 | const reasons = [] |
no outgoing calls
no test coverage detected