mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
GitHub - leveral repository rules for branch protection (#180416)
* WIP - switching to use repository ruleset information * Handle includes * Refactor to add support for exclusion * Fix exclude condition * Fix request string * Add logging * Update setting description
This commit is contained in:
7
extensions/git/src/api/git.d.ts
vendored
7
extensions/git/src/api/git.d.ts
vendored
@@ -276,7 +276,12 @@ export interface PushErrorHandler {
|
||||
|
||||
export interface BranchProtection {
|
||||
readonly remote: string;
|
||||
readonly branches: string[];
|
||||
readonly rules: BranchProtectionRule[];
|
||||
}
|
||||
|
||||
export interface BranchProtectionRule {
|
||||
readonly include?: string[];
|
||||
readonly exclude?: string[];
|
||||
}
|
||||
|
||||
export interface BranchProtectionProvider {
|
||||
|
||||
Reference in New Issue
Block a user