docs(events-backend-module-github): correct install instructions

The /alpha exports have been removed in #29598

Signed-off-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
This commit is contained in:
Thomas Cardonne
2025-04-24 14:45:38 +02:00
parent e1e0ddad62
commit a0e5035a1e
+5 -16
View File
@@ -27,16 +27,14 @@ Please find all possible webhook event types at the
yarn --cwd packages/backend add @backstage/plugin-events-backend-module-github
```
### Event Router
```ts
// packages/backend/src/index.ts
import { eventsModuleGithubEventRouter } from '@backstage/plugin-events-backend-module-github/alpha';
// ...
backend.add(eventsModuleGithubEventRouter);
backend.add(import('@backstage/plugin-events-backend-module-github'));
```
#### Legacy Backend System
### Legacy Backend System
#### Event Router
```ts
// packages/backend/src/plugins/events.ts
@@ -44,16 +42,7 @@ const eventRouter = new GithubEventRouter({ events: env.events });
await eventRouter.subscribe();
```
### Signature Validator
```ts
// packages/backend/src/index.ts
import { eventsModuleGithubWebhook } from '@backstage/plugin-events-backend-module-github/alpha';
// ...
backend.add(eventsModuleGithubWebhook);
```
#### Legacy Backend System
#### Signature Validator
Add the signature validator for the topic `github`: