Skip to main content

@backstage/plugin-events-backend-module-gitlab

Home > @backstage/plugin-events-backend-module-gitlab

The module "gitlab" for the Backstage backend plugin "events-backend" adding an event router and token validator for GitLab.

Classes

ClassDescription
GitlabEventRouterSubscribes to the generic gitlab topic and publishes the events under the more concrete sub-topic depending on the $.event_name field provided.

Functions

FunctionDescription
createGitlabTokenValidator(config)

Validates a configured secret token against the token received with the x-gitlab-token header.

See https://docs.gitlab.com/ee/user/project/integrations/webhooks.html\#validate-payloads-by-using-a-secret-token for more details.