Git - implement branch protection provider (#179752)

* Branch protection using settings is working

* Revert extension api changes

* Refactor code
This commit is contained in:
Ladislau Szomoru
2023-04-12 09:48:29 +02:00
committed by GitHub
parent e5512217bc
commit a1eb9e2b48
7 changed files with 126 additions and 27 deletions

View File

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