Azure DevOps allows webhooks to be configured on the Azure DevOps project level.
From your Azure DevOps project page, click Project settings, then select Service hooks from the sidebar. We're actually going to create three webhooks here via the same method:
Pull request created
Pull request updated
From here, click the green "+" button to create a webhook. This will open up an overlay. From here, click Web Hooks from the sidebar, then click Next.
On this next page, pick the event to configure a webhook for. We'll be doing this for each of the events above. It's recommended that you choose [Any] for all of the options as this ensures you don't have to re-configure these hooks every time you add a repository.
On this next page, we'll actually put the webhook endpoint to configure. This will be the same for all webhooks. Ensure the hostname or ip address given can be used to access the proxy server:
You can use the Test button to test that this webhook endpoint can be reached. When finished, click Finish.
Complete these steps for all necessary webhooks.
This step is option. If you'd like added security for outgoing webhooks, you can go ahead and specify a Basic authentication iusername and a Basic authentication password when entering the webhook URL.
You will need the same webhook secret for all of your organizations/repositories if you add one.
Update your webhook secret in the PullRequest Proxy UI if you are adding one, otherwise the proxy will not be able to verify/process the webhooks.
In order to use this option, you must configure the webhook secret in the proxy configuration page:
This should be of the form:
in plain text. Click Update when done.