(source: string, content: string, message: string)
| 30 | } |
| 31 | |
| 32 | export async function commit(source: string, content: string, message: string) { |
| 33 | await fs.writeFile(path.join(source, "README.md"), content) |
| 34 | await git(source, "add", "README.md") |
| 35 | await git(source, "commit", "-m", message) |
| 36 | await git(source, "push") |
| 37 | } |
| 38 | |
| 39 | export async function branch(source: string, name: string, content: string) { |
| 40 | await git(source, "checkout", "-b", name) |
no test coverage detected