()
| 353 | * Returns true if the current git branch is master |
| 354 | */ |
| 355 | export function checkGitIsMasterBranch() { |
| 356 | const branch = execSync(`git rev-parse --abbrev-ref HEAD`, { |
| 357 | encoding: 'utf-8', |
| 358 | }).toString() |
| 359 | return branch.trim() === 'master' |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Returns the first n characters of the current git commit hash. |
no outgoing calls
no test coverage detected