Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
4
Versions
1031
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Source
npmnpm
Version
0.0.0-nightly-20221120024118
Version published
Weekly downloads
8.8K
-1.97%
Maintainers
4
Weekly downloads
 
Created
Source

events-backend-module-github

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

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

The event router will subscribe to the topic github and route the events to more concrete topics based on the value of the provided x-github-event metadata field.

Examples:

x-github-eventtopic
pull_requestgithub.pull_request
pushgithub.push
repositorygithub.repository

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 add --cwd packages/backend @backstage/plugin-events-backend-module-github

Add the event router to the EventsBackend:

+const githubEventRouter = new GithubEventRouter();

 EventsBackend
+  .addPublishers(githubEventRouter)
+  .addSubscribers(githubEventRouter);
// [...]

FAQs

Package last updated on 20 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts