()
| 243 | } |
| 244 | |
| 245 | function defaultGithubRepo(): string | undefined { |
| 246 | const gitConfigPath = path.join(GIT_DIR, "config"); |
| 247 | |
| 248 | if (fs.existsSync(gitConfigPath)) { |
| 249 | const gitConfig = fs.readFileSync(gitConfigPath, "utf8"); |
| 250 | const match = /github\.com:(.+)\.git/.exec(gitConfig); |
| 251 | if (match) { |
| 252 | return match[1]; |
| 253 | } |
| 254 | } |
| 255 | return undefined; |
| 256 | } |
| 257 | |
| 258 | function loadYMLDeploy(): { exists: boolean; branch?: string } { |
| 259 | if (fs.existsSync(YML_FULL_PATH_MERGE)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…