Updated manifest, wording tweaks, source updates

This commit is contained in:
Will Smythe 2015-11-25 00:37:50 -05:00
Родитель 2a2425eabc
Коммит eed4bbda9f
6 изменённых файлов: 44 добавлений и 13 удалений

1
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1 @@
.vsix

Просмотреть файл

7
README.md Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# Branch Delete Extension for Visual Studio Team Services
This sample extension adds the ability to delete a Git branch from Visual Studio Team Services.
![shot](images/delete-action-screenshot.png)
To learn more about this extension, [view it on the Visual Studio Marketplace](https://marketplace.visualstudio.com/items/ms-samples.samples-branch-delete)

11
overview.md Normal file
Просмотреть файл

@ -0,0 +1,11 @@
## Clean up branches right from the web
Lots of old branches piling up in your Git repo? Easily delete them from the web. No client tools necessary.
Simply select a branch, right-click, select Delete, and confirm.
![delete](images/delete-action-screenshot.png)
## Learn more
The [source](https://github.com/Microsoft/vsts-branch-delete) for this extension is on GitHub. Take, fork, and extend.

Просмотреть файл

@ -5,13 +5,9 @@ var deleteBranchMenu = (function () {
execute: function (sourceItemContext) {
var ref = sourceItemContext.ref ? sourceItemContext.ref : null;
if (confirm("Are you sure you want to delete the branch '" + ref.friendlyName + "'?")) {
var oldRefId = ref.objectId;
// Post the ref update
VSS.ready(function () {
require(["TFS/VersionControl/GitRestClient"], function (TfsGitClient) {
// Get repo name from repo ID (needed to refresh the page)
// NOTE: This is also a temporary workaround
var gitClient = TfsGitClient.getClient();
gitClient.updateRefs([{
name: ref.name,

Просмотреть файл

@ -1,18 +1,39 @@
{
"manifestVersion": 1,
"id": "branch-delete",
"version": "0.1.0",
"id": "samples-branch-delete",
"version": "0.1.2",
"name": "Branch Delete",
"description": "Clean up old or unneeded Git branches right from within Visual Studio Team Services.",
"publisher": "ms-devlabs",
"publisher": "ms-samples",
"public": true,
"icons": {
"default": "images/branch-delete.png"
},
"scopes": ["vso.code_manage"],
"tags": [
"Sample"
"git",
"delete"
],
"content": {
"details": {
"path": "overview.md"
},
"license": {
"path": "LICENSE.txt"
}
},
"links": {
"learn": {
"uri": "https://github.com/Microsoft/vsts-branch-delete"
},
"issues": {
"uri": "https://github.com/Microsoft/vsts-branch-delete/issues"
}
},
"branding": {
"color": "rgb(168, 26, 26)",
"theme": "dark"
},
"categories": [
"Code"
],
@ -21,11 +42,6 @@
"id": "Microsoft.VisualStudio.Services"
}
],
"screenshots": [
{
"path": "images/delete-action-screenshot.png"
}
],
"files": [
{
"path": "images",