Get Database Change Notification via Webhook
Bytebase is an open-source database schema change and version control management tool for DBAs and developers.
For better collaboration, DBAs and developers need to be notified when there is any update of the database changes. With Bytebase, you can configure webhooks at a project-level so that Bytebase can post database change notifications to the webhook endpoint. You can receive notifications via your specified message systems such as Slack, Teams. The following is a list of activities that can be configured to trigger a webhook:
- A new issue is created
- The status of an issue is updated
- The status of a task under an issue is updated
- The information of an issue is updated
- A new comment is added to an issue
Meanwhile, there are 2 types of webhooks on a project-level:
- Pre-defined webhook
- Custom webhook
Pre-defined webhook
With pre-defined webhook, users can receive database change notifications via Slack, Discord, Teams, DingTalk, Feishu, WeCom.
Custom webhook
With custom webhook, Bytebase can post database change notifications to your own message systems such as in-house Ops Platform. For the HTTP message format of custom webhook, see Project Webhook.
Special thanks to @Cluas for the PR feat: add custom project webhook!
How to configure webhook
You can complete the webhook configuration in 3 steps:
Step 1. On the Project page, click "Webhooks" Step 2. Click "Add a webhook", then choose an endpoint (take Slack as an example), and enter "Name" and "Webhook url" Step 3. Select the triggers and click "Create" As a result, you can now receive database change notifications via Slack: