()
| 3 | const git = simpleGit(); |
| 4 | |
| 5 | export async function getCurrentBranch(): Promise<string> { |
| 6 | const branch = await git.revparse(["--abbrev-ref", "HEAD"]); |
| 7 | return branch.trim(); |
| 8 | } |
| 9 | |
| 10 | export async function getRepoName(): Promise<string> { |
| 11 | const remote = await git.remote(["get-url", "origin"]).catch(() => null); |
no outgoing calls
no test coverage detected