Git/GitHub - Branch protection refactoring (#179848)

Branch protection refactoring
This commit is contained in:
Ladislau Szomoru
2023-04-13 11:14:33 +02:00
committed by GitHub
parent 213f4fa39d
commit 45a44d1786
5 changed files with 30 additions and 22 deletions

View File

@@ -268,9 +268,14 @@ export interface PushErrorHandler {
handlePushError(repository: Repository, remote: Remote, refspec: string, error: Error & { gitErrorCode: GitErrorCodes }): Promise<boolean>;
}
export interface BranchProtection {
readonly remote: string;
readonly branches: string[];
}
export interface BranchProtectionProvider {
onDidChangeBranchProtection: Event<Uri>;
provideBranchProtection(): Map<string, string[]>;
provideBranchProtection(): BranchProtection[];
}
export type APIState = 'uninitialized' | 'initialized';