Like
Install webhooks as a package?
Copied
npm i @bit/bit.extensions.defaults.webhooks
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
chevron_left
chevron_right
This extension registers to some of Bit’s core hooks and posts these events as web hooks.
The core hooks being registered
The core hooks registered are: post-receive-objects
(post export), post-send-objects
(post import), post-deprecate-remote
, post-remove-remote
.
Configuration
The extension expects a publisherBaseUrl
config entry, which defines the address to which the events are posted as web hooks.
Web hooks
The events posted are publisherBaseUrl/export
, publisherBaseUrl/import
, publisherBaseUrl/deprecate
, publisherBaseUrl/remove
- each recieves the following json as payload:
{
componentIds,
scopeName
}
componentIds - an array of component ids.
Logs
Results and errors are be logged to the extension log.