A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Github Webhooks module for Nest.
$ npm i --save @dev-thought/nestjs-github-webhooks
In app.module.ts
:
import { GithubWebhooksModule } from '@dev-thought/nestjs-github-webhooks';
@Module({
imports: [
...
GithubWebhooksModule.forRoot({
webhookSecret: 'YOUR_WEBHOOK_APIKEY'
}),
];
})
class AppModule {}
@Module({
imports: [
...
GithubWebhooksModule.forRootAsync({
useFactory: () => ({ webhookSecret: 'SomeSecret' })
})
];
})
class AppModule {}
import {
GithubGuard,
GithubWebhookEvents,
} from '@dev-thought/nestjs-github-webhooks';
@Controller()
export class AppController {
@UseGuards(GithubGuard)
@Post()
githubWebhoook() {
...
}
@UseGuards(GithubGuard)
@GithubWebhookEvents(['push', 'pullrequest'])
@Post('withGithubEvent')
withRestrictedGithubEvents() {
...
}
}
You can read more about this integration here
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author Github Webhooks Module for NestJS - Mitko Tschimev
- Twitter Author - Mitko Tschimev
- Author NestJS - Kamil Myśliwiec
- Website NestJS - https://nestjs.com
- Twitter NestJS - @nestframework
This Module is MIT licensed.