mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Git - branch protection (#149360)
* Initial implementation of branch protection * Pull request feedback * Update extensions/git/src/commands.ts Co-authored-by: João Moreno <joao.moreno@microsoft.com>
This commit is contained in:
@@ -1854,6 +1854,29 @@
|
||||
"description": "%config.branchPrefix%",
|
||||
"default": ""
|
||||
},
|
||||
"git.branchProtection": {
|
||||
"type": "array",
|
||||
"markdownDescription": "%config.branchProtection%",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": []
|
||||
},
|
||||
"git.branchProtectionPrompt": {
|
||||
"type": "string",
|
||||
"description": "%config.branchProtectionPrompt%",
|
||||
"enum": [
|
||||
"alwaysCommit",
|
||||
"alwaysCommitToNewBranch",
|
||||
"alwaysPrompt"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"%config.branchProtectionPrompt.alwaysCommit%",
|
||||
"%config.branchProtectionPrompt.alwaysCommitToNewBranch%",
|
||||
"%config.branchProtectionPrompt.alwaysPrompt%"
|
||||
],
|
||||
"default": "alwaysPrompt"
|
||||
},
|
||||
"git.branchValidationRegex": {
|
||||
"type": "string",
|
||||
"description": "%config.branchValidationRegex%",
|
||||
@@ -2602,6 +2625,7 @@
|
||||
"byline": "^5.0.0",
|
||||
"file-type": "^7.2.0",
|
||||
"jschardet": "3.0.0",
|
||||
"picomatch": "2.3.1",
|
||||
"vscode-nls": "^4.0.0",
|
||||
"vscode-uri": "^2.0.0",
|
||||
"which": "^1.3.0"
|
||||
@@ -2611,6 +2635,7 @@
|
||||
"@types/file-type": "^5.2.1",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "16.x",
|
||||
"@types/picomatch": "2.3.0",
|
||||
"@types/which": "^1.0.28"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user