- Navigate to your Azure DevOps project.
- Click on “Project settings” in the bottom-left corner.
- Under the “General” section, select “Service hooks”.
- Click the ”+ Create Subscription” button.
-
Time to configure your webhook:
- Service: Choose “Web Hooks”
- Trigger on this type of event: Select the event type (see below)
- URL: Enter the URL where you want to receive notifications — the same one set in
GLOBAL_AZURE_CODE_MANAGEMENT_WEBHOOK
in your.env
file. - Details:
- Pull request created
- Pull request updated
- Pull request commented
- Filters (optional): You can filter by repository or branch if needed.
- Action: Configure to send a POST request to the given URL.
- Click “Finish”
Make sure the URL you use is reachable and accepts incoming POST requests for
pull request events.