-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A tools to dump out the possible values for a call to the release API (…
- Loading branch information
Showing
6 changed files
with
3,237 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as webApi from "vso-node-api/WebApi"; | ||
import { IReleaseApi } from "vso-node-api/ReleaseApi"; | ||
import * as vstsInterfaces from "vso-node-api/interfaces/common/VsoBaseInterfaces"; | ||
|
||
async function run(): Promise<void> { | ||
console.log ("Start Export"); | ||
|
||
var tpcUri = "https://dev.azure.com/richardfennell/"; | ||
// assuming I am autneticated I don't need to provide a PAT | ||
var pat = ""; | ||
var teamProject = "GitHub"; | ||
var releaseId = 1285; | ||
let credHandler = webApi.getHandlerFromToken(pat); | ||
let vsts = new webApi.WebApi(tpcUri, credHandler); | ||
var releaseApi: IReleaseApi = await vsts.getReleaseApi(); | ||
var release = await releaseApi.getRelease(teamProject, releaseId); | ||
console.log (release); | ||
|
||
console.log ("End Export"); | ||
} | ||
|
||
run(); |
Oops, something went wrong.