Skip to content

Commit 0a1a420

Browse files
authored
Merge pull request #547 from bytebase/dddm
feat: dingtalk dm
2 parents 0bb5b5d + 8a6c607 commit 0a1a420

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/docs/change-database/webhook.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ The following events support sending direct messages/notifications to related us
8888

8989
[Official guide](https://developers.dingtalk.com/document/robots/custom-robot-access)
9090

91+
#### Configure sending direct messages to related users
92+
93+
1. Go to [https://open-dev.dingtalk.com/](https://open-dev.dingtalk.com/).
94+
1. Select **Application Development**, click **Create Application**.
95+
1. Select **Credentials and Basic Information** on the left sidebar. Obtain the **Client ID** and **Client Secret**.
96+
1. Select **Permission Management**, grant the following permissions:
97+
- `qyapi_get_member_by_mobile`
98+
- `qyapi_robot_sendmsg`
99+
1. Select **Add Application Capability**, add the **Robot** capability. Configure the robot, and for **Message receiving mode** select `Stream mode`. In "Robot Configuration", click **Copy RobotCode** to obtain the **Robot Code**. Publish the robot.
100+
1. Select **Version Management and Release**. Click **Create New Version**. Fill in the relevant information, then **Save** and **Directly Publish**.
101+
1. Go back to Bytebase and fill **Client ID**, **Client Secret** and **Robot Code** fields under **Integration > IM**.
102+
1. Go to **Integration > Webhooks** in a project, add a webhook, check all the events you want to send direct messages, and click **Create**.
103+
91104
<HintBlock type="info">
92105

93106
DingTalk allows to specify a list of keywords in the [security setting](https://developers.dingtalk.com/document/robots/customize-robot-security-settings) to protect webhook endpoint. You can add "Bytebase" to that keyword list.

0 commit comments

Comments
 (0)