backstage

Форк
0

README.md

events-backend-module-gerrit

Welcome to the events-backend-module-gerrit backend plugin!

This plugin is a module for the events-backend backend plugin and extends it with an GerritEventRouter.

The event router will subscribe to the topic gerrit and route the events to more concrete topics based on the value of the provided $.type payload field.

Examples:

$.typetopic
change-createdgerrit.change-created
change-mergedgerrit.change-merged

Please find all possible webhook event types at the official documentation.

Installation

Install the events-backend plugin.

Install this module:

# From your Backstage root directory
yarn --cwd packages/backend add @backstage/plugin-events-backend-module-gerrit

Add to backend

backend.add(import('@backstage/plugin-events-backend-module-gerrit/alpha'));

Add to backend (old)

Add the event router to the EventsBackend instance in packages/backend/src/plugins/events.ts:

+const gerritEventRouter = new GerritEventRouter();
new EventsBackend(env.logger)
+ .addPublishers(gerritEventRouter)
+ .addSubscribers(gerritEventRouter);
// [...]

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.