This n8n workflow automates the process of notifying a DingTalk group about new Azure DevOps pull requests, ensuring team members are promptly informed and can review changes efficiently. It integrates Azure DevOps, a MySQL database for user mappings, and DingTalk’s webhook service.
The workflow begins with a Webhook node that listens for ‘Pull Request Created’ events from Azure DevOps. When triggered, it loads user mapping data from a MySQL table, which correlates Azure DevOps accounts with DingTalk contact details. Next, a Function node processes the incoming message, replacing user names with DingTalk names and preparing mention notifications for reviewers.
The message content is dynamically constructed to include mentions for specific reviewers or everyone if necessary. Finally, an HTTP Request node sends the formatted markdown message to a DingTalk group using a webhook, completing the notification cycle.
This automation is useful for teams that want real-time updates on pull request activities and seamless communication between Azure DevOps and DingTalk, boosting collaboration and reducing review turnaround times.
Reviews
There are no reviews yet.