Added new github integration tasks

This commit is contained in:
Richard Osborne
2026-01-18 14:38:32 +01:00
parent addd4d9c4a
commit bf07f1cb4a
44 changed files with 12015 additions and 402 deletions

View File

@@ -106,11 +106,17 @@ export class Git {
* Open a git repository in the given path.
*
* @param baseDir
* @throws Error if the path is not a git repository
*/
async openRepository(baseDir: string): Promise<void> {
if (this.baseDir) return;
this.baseDir = await open(baseDir);
const repositoryPath = await open(baseDir);
if (!repositoryPath) {
throw new Error(`Not a git repository: ${baseDir}`);
}
this.baseDir = repositoryPath;
await this._setupRepository();
}