Documentation ¶
Overview ¶
Copyright 2019 go-azuredevops AUTHORS. All rights reserved.
This example uses the go-azuredevops library to handle a webhook from Azure Devops. Use a tool like ngrok to test locally. This code: 0. Prompts the user for input 1. Creates an API client using basic auth and personal access token 2. Sets up a web server on port 9000 3. Listens for azuredevops.PushEvent webhooks 4. Upon receiving a webhook, validates Basic user/pass 5. Queues the supplied build ID number if webhook is valid
Click to show internal directories.
Click to hide internal directories.