()
| 6 | export const gitOrigin = 'coderoad' |
| 7 | |
| 8 | const stashAllFiles = async (): Promise<never | void> => { |
| 9 | // stash files including untracked (eg. newly created file) |
| 10 | const { stderr } = await exec({ command: `git stash --include-untracked` }) |
| 11 | if (stderr) { |
| 12 | logger(`Error: ${stderr}`) |
| 13 | throw new Error('Error stashing files') |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | const cherryPickCommit = async (commit: string, count = 0): Promise<never | void> => { |
| 18 | if (count > 1) { |
no test coverage detected