mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +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:
@@ -42,7 +42,7 @@ export class GitBranchProtectionProvider implements BranchProtectionProvider {
|
||||
.map(bp => typeof bp === 'string' ? bp.trim() : '')
|
||||
.filter(bp => bp !== '');
|
||||
|
||||
this.branchProtection = { remote: '', branches };
|
||||
this.branchProtection = { remote: '', rules: [{ include: branches }] };
|
||||
this._onDidChangeBranchProtection.fire(this.repositoryRoot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user