A collection of Hubot scripts to perform tasks in Visual Studio Online.
Hubot scripts for Visual Studio Online provides many commands to perform tasks in Visual Studio Online.
The scripts can run in two modes
- Trusted mode: the tasks against Visual Studio Online are performed using the same account
- Impersonate mode: the tasks against Visual Studio Online are perfomed on behalf of the user issuing the command. In this mode the user has to explicitly authorize hubot
To install, in your Hubot instance directory
npm install vsonline-scripts
Include the package in your hubot's external-scripts.json
["vsonline-scripts"]
The required environment variables are
- HUBOT_VSONLINE_ACCOUNT - The Visual Studio Online account's name
Trust Mode
In trust mode we need to set the alternate credentials of the user who will perform the tasks
- HUBOT_VSONLINE_USERNAME: The alternate credentials username
- HUBOT_VSONLINE_PASSWORD: The alternate credentials password
Impersonate Mode
In impersonate we need to set the variables defined in the application registered in Visual Studio Online (Click here to know how to register an application in Visual Studio Online
- HUBOT_VSONLINE_APP_ID: The application ID
- HUBOT_VSONLINE_APP_SECRET: The application secret
- HUBOT_VSONLINE_AUTHORIZATION_CALLBACK_URL: The OAuth callback URL. This URL must be available from the chat service you're using
MIT