Desktop notifications for Visual Studio Team Services events.
This is a simple ASP.NET Core webapp that posts messages into the configured Slack channel triggered by the following events (more to come!):
- Pull requests created. Notifies involved reviewers of the creation of a pull request assigned to them:
The appsettings.json file has to be edited adding the members of your team you want to be notified and the Slack integration webhook URL.
To do this, simply replace the existing Contributors under the Settings section with a JSON object of the form
{ "Id": "[VSTS identifier]", "SlackUserId": "[Slack identifier]" }From this:
- VSTS identifier is usually the login of the user.
- Slack identifier is the
idproperty from each user instance in the list of theusers.listmethod from Slack API. Get a list of all users in your team here.
Under the Settings section, replace the SlackWebhookUrl with your integration of choice.
With ❤️
