How to add deploy notifications as comments to pull requests in Azure DevOps.
Generate a personal access token in Azure DevOps
The first thing to do it get a PAT token from Azure DevOps:
In the top right, click the settings icon > Personal access tokens
Click “New Token”
Set the name, organisation and expiration date:
Click Create, then copy the token (because you won’t see it again)
Enabling Deploy Notifications in Netlify
- From the main dashboard, click the site you want to enable deploy notifications to
- Click “Site configuration”
- Under notifications, click “Emails and webhooks”
- Click Add notification > Azure DevOps pull request comment
- Under Event to listen to select “Deploy preview succeeded”
- Paste the PAT token from DevOps
- Click Save 🙂