feat(webhook): change webhook param names and support GitLab
Julien has requested we support a GitLab webhook. Example with curl:
curl -X POST \
-F token=TOKEN \
-F ref=REF_NAME \
https://gitlab.coko.foundation/api/v4/projects/672/trigger/pipeline
Our webhook previously used param names articleId
and secret
; I've changed these to ref
and token
respectively, as these names are more generic. If the env variable PUBLISHING_WEBHOOK_REF
is configured, its value will be sent as ref
instead of the manuscript ID.
There are no current users of the webhook functionality, so these changes won't impact any user.