Send DingTalk message on new Azure DevOps Pull Request

Nodes

c26ee7ea-e01b-42ad-8f48-355916f8914c9dd572aa-e531-4ffe-a66c-58ac7003ac5d2e3e39e3-0e17-4fae-9ac5-9ee31f9711ed3b9f1b78-6b80-4575-aa6c-966987000389

Categories

Created by

PrPretenderX

Last edited 38 days ago

This template automates sending a DingTalk message on new Azure Dev Ops Pull Request Created Events. It uses a MySQL database to store mappings between Azure users and DingTalk users; so the right users get notified.

Set up instructions

  1. Define the path value of ReceiveTfsPullRequestCreatedMessage Webhook node of your own, copy the webhook url to create a Azure DevOps ServiceHook that call webhook with Pull Request Created event.
  2. In order to configure the LoadDingTalkAccountMap node, you need to create a MySQL table as below: |Name|Type|Length|Key| |-|-|-|-| |TfsAccount|varchar|255| |UserName|varchar|255| |DingTalkMobile|varchar|255|
  3. You can customize the Ding Talk message content by editing the BuildDingTalkWebHookData node.
  4. Define the URL of SendDingTalkMessageViaWebHook Http Request node as your Ding Talk group chat robot webhook URL.
  5. Send test of production message from Azure DevOps to test.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!