Visit config-ui: http://{localhost}:4000.
Go to the ‘Connections’ page. Create a webhook with a unique name.
Click on Generate POST URL, and you will find three webhook URLs.
Copy the ones that suit your usage into your CI/CD or issue-tracking systems. You can always come back to the webhook page to copy the URLs later on.
A non-expired API key is auto-generated for the authentication of the webhook. This API key only shows in the payload when you create the webhook. However, you can always revoke and generate a new token when you view the webhook details.
See the full payload schema of webhooks.
If you want to use the webhook data to measure DORA metrics, you have to associate it with a DevLake project.
For the new webhook to work, it needs to be accessible from the DevOps tools from which you would like to push data to DevLake. If DevLake is deployed in your private network and your DevOps tool (e.g. CircleCI) is a cloud service that lives outside of your private network, then you need to make DevLake's webhook accessible to the outside cloud service.
There are many tools for this:
localhost part in the webhook URL with the forwarding URL that ngrok provides.If you run into any problems, please check the Troubleshooting or create an issue.