close pull request

This commit is contained in:
Peng Lyu
2018-05-21 11:32:15 -07:00
parent a857fd580a
commit 2ccad33b9b
7 changed files with 85 additions and 9 deletions

View File

@@ -72,6 +72,10 @@
"command": "pr.pick",
"title": "Checkout Pull Request"
},
{
"command": "pr.close",
"title": "Close Pull Request"
},
{
"command": "pr.openInGitHub",
"title": "Open in GitHub"
@@ -106,6 +110,10 @@
"command": "pr.openInGitHub",
"when": "view == pr && viewItem =~ /pullrequest/"
},
{
"command": "pr.close",
"when": "view == pr && viewItem =~ /pullrequest/"
},
{
"command": "pr.openInGitHub",
"when": "view =~ /(pr|prStatus)/ && viewItem == filechange"
@@ -123,7 +131,7 @@
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"watch": "npm run build-preview && npm run compile",
"watch-preview": "npm run build-preview",
"build-preview": "webpack --watch --mode development"
},
"devDependencies": {