Automated DingTalk Notifications for Azure DevOps Pull Requests
detail.loadingPreview
Streamline your code review process by automatically notifying your team on DingTalk for new Azure DevOps pull requests. This workflow ensures the right people are alerted, improving response times and collaboration.
About This Workflow
This n8n workflow automates the process of sending real-time notifications to your team's DingTalk chat whenever a new pull request is created in Azure DevOps. It intelligently maps Azure DevOps users to DingTalk contacts using a MySQL database, ensuring that specific individuals or teams are mentioned in the notification. The system parses the pull request details, formats a clear and concise message (including @ mentions), and sends it directly to your designated DingTalk group, enhancing team awareness and accelerating the code review cycle.
Key Features
- Real-time Pull Request Alerts: Get instant notifications in DingTalk the moment a new pull request is opened.
- Intelligent User Mapping: Connects Azure DevOps users to DingTalk contacts via a MySQL database for accurate
@mentions. - Customizable Notifications: Easily tailor the content and recipients of your DingTalk messages.
- Automated Workflow: Reduces manual overhead and ensures no pull request goes unnoticed.
How To Use
- Configure Azure DevOps Webhook: Set up an Azure DevOps Service Hook for the 'Pull Request Created' event, pointing to the provided webhook URL for the
ReceiveTfsPullRequestCreatedMessagenode. - Set up MySQL Database: Create a MySQL table named
tfs_dingtalk_account_mapwith columnsTfsAccount(Azure DevOps username),UserName(DingTalk username), andDingTalkMobile(DingTalk mobile number). - Populate User Mappings: Add entries to your MySQL table to link Azure DevOps users to their corresponding DingTalk usernames and mobile numbers.
- Update DingTalk Robot URL: Replace the placeholder URL in the
SendDingTalkMessageViaWebHooknode with your actual DingTalk group chat robot webhook URL. - Customize Message Content (Optional): Modify the JavaScript code in the
BuildDingTalkWebHookDatanode to alter the notification message format, title, or logic for@mentions.
Apps Used
Workflow JSON
{
"id": "b302e157-5aee-4035-9d61-382cfffd7496",
"name": "Automated DingTalk Notifications for Azure DevOps Pull Requests",
"nodes": 11,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b302e157-5aee...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.