-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new widgets to the PR and Build windows
- Loading branch information
Showing
6 changed files
with
218 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../lib/VSS.SDK.min.js"></script> | ||
<link rel="stylesheet" href="../styles.css" /> | ||
|
||
<script type="text/javascript"> | ||
VSS.init({ | ||
explicitNotifyLoaded: true, | ||
usePlatformStyles: true | ||
}); | ||
|
||
VSS.require( | ||
["VSS/Service", "TFS/Dashboards/WidgetHelpers", "VSS/Context", "TFS/VersionControl/GitRestClient", "TFS/Core/RestClient"], | ||
async function (Service, WidgetHelpers, context, GitWebApi, RestClient) | ||
{ | ||
WidgetHelpers.IncludeWidgetStyles(); | ||
VSS.register("GHAzDoWidget.TestingWidget", async function () { | ||
const webContext = VSS.getWebContext(); | ||
const project = webContext.project; | ||
const organization = webContext.account.name; | ||
const projectId = project.id; | ||
// convert project.name to url encoding | ||
const projectName = project.name.replace(/ /g, "%20").replace(/&/g, "%26"); | ||
|
||
consoleLog('project id: ' + projectId); | ||
consoleLog('project name: ' + projectName); | ||
consoleLog('organization name: ' + organization); | ||
|
||
return { | ||
load: async function (widgetSettings) { | ||
return WidgetHelpers.WidgetStatusHelper.Success(); | ||
} | ||
} | ||
}); | ||
VSS.notifyLoadSucceeded(); | ||
} | ||
); | ||
</script> | ||
|
||
</head> | ||
<body> | ||
Hello build info with GHAzDo info! | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="../../lib/VSS.SDK.min.js"></script> | ||
<link rel="stylesheet" href="../styles.css" /> | ||
|
||
<script type="text/javascript"> | ||
VSS.init({ | ||
explicitNotifyLoaded: true, | ||
usePlatformStyles: true | ||
}); | ||
|
||
VSS.require( | ||
["VSS/Service", "TFS/Dashboards/WidgetHelpers", "VSS/Context", "TFS/VersionControl/GitRestClient", "TFS/Core/RestClient"], | ||
async function (Service, WidgetHelpers, context, GitWebApi, RestClient) | ||
{ | ||
WidgetHelpers.IncludeWidgetStyles(); | ||
VSS.register("GHAzDoWidget.TestingWidget", async function () { | ||
const webContext = VSS.getWebContext(); | ||
const project = webContext.project; | ||
const organization = webContext.account.name; | ||
const projectId = project.id; | ||
// convert project.name to url encoding | ||
const projectName = project.name.replace(/ /g, "%20").replace(/&/g, "%26"); | ||
|
||
consoleLog('project id: ' + projectId); | ||
consoleLog('project name: ' + projectName); | ||
consoleLog('organization name: ' + organization); | ||
|
||
return { | ||
load: async function (widgetSettings) { | ||
return WidgetHelpers.WidgetStatusHelper.Success(); | ||
} | ||
} | ||
}); | ||
VSS.notifyLoadSucceeded(); | ||
} | ||
); | ||
</script> | ||
|
||
</head> | ||
<body> | ||
Hello PR tab with GHAzDo info! | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters