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:
Ladislau Szomoru
2022-05-13 11:15:01 +02:00
committed by GitHub
parent 9701a364ac
commit a28eab6873
4 changed files with 71 additions and 0 deletions

View File

@@ -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": {