supamend
Version:
Pluggable DevSecOps Security Scanner with 10+ scanners and multiple reporting channels
44 lines • 1.14 kB
TypeScript
export declare class GitManager {
private git;
constructor();
/**
* Clone a repository to a temporary directory
*/
cloneRepository(repoUrl: string, token?: string): Promise<string>;
/**
* Check if repository URL is valid
*/
private isValidRepoUrl;
/**
* Check if clone error is retryable
*/
private isRetryableCloneError;
/**
* Clean up temporary repository directory
*/
cleanup(repoPath: string): Promise<void>;
/**
* Force cleanup using alternative methods
*/
private forceCleanup;
/**
* Get repository information
*/
getRepoInfo(repoPath: string): Promise<{
remote: string;
branch: string;
}>;
/**
* Check if current directory is a git repository
*/
isGitRepository(cwd?: string): Promise<boolean>;
/**
* Get current repository remote URL
*/
getCurrentRepoRemote(cwd?: string): Promise<string | null>;
/**
* Get current repository branch
*/
getCurrentRepoBranch(cwd?: string): Promise<string | null>;
}
//# sourceMappingURL=git-manager.d.ts.map