webhook

command
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL