Skip to content

Commit e1ab7b5

Browse files
committed
Adding sample for backlog-item-menu contribution point
1 parent c877493 commit e1ab7b5

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

azure-devops-extension.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"manifestVersion": 1,
33
"id": "samples",
4-
"publisher": "ms-samples",
5-
"version": "1.0.396",
4+
"publisher": "DanHellem",
5+
"version": "1.0.402",
66
"name": "Extension Sample",
77
"description": "Azure DevOps extension sample",
88
"categories": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<body>
4+
<script type="text/javascript" src="backlog-item-menu.js" charset="utf-8"></script>
5+
</body>
6+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"contributions": [
3+
{
4+
"id": "backlog-item-menu",
5+
"type": "ms.vss-web.action",
6+
"targets": [
7+
"ms.vss-work-web.backlog-item-menu"
8+
],
9+
"properties": {
10+
"text": "Custom backlog item action",
11+
"uri": "dist/backlog-item-menu/backlog-item-menu.html",
12+
"icon": {
13+
"light": "static/asterisk.png",
14+
"dark": "static/asterisk.png"
15+
},
16+
"registeredObjectId": "sample-backlog-item-menu"
17+
}
18+
}
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import "es6-promise/auto";
2+
import * as SDK from "azure-devops-extension-sdk";
3+
4+
SDK.register("sample-backlog-item-menu", () => {
5+
return {
6+
execute: async (context: any) => {
7+
alert("Hello, world");
8+
console.log(context);
9+
}
10+
}
11+
});
12+
13+
SDK.init();

static/asterisk.png

16.7 KB
Loading

0 commit comments

Comments
 (0)