Connect your Github webhooks with NestJs - modern, fast, powerful node.js web framework
npm install @dev-thought/nestjs-github-webhooks
A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Github Webhooks module for Nest.
``bash`
$ npm i --save @dev-thought/nestjs-github-webhooks
`typescript`
@Module({
imports: [
...
GithubWebhooksModule.forRoot({
webhookSecret: 'YOUR_WEBHOOK_APIKEY'
}),
];
})
class AppModule {}
`typescript`
@Module({
imports: [
...
GithubWebhooksModule.forRootAsync({
useFactory: () => ({ webhookSecret: 'SomeSecret' })
})
];
})
class AppModule {}
`typescript
@Controller()
export class AppController {
@UseGuards(GithubGuard)
@Post()
githubWebhoook() {
...
}
@UseGuards(GithubGuard)
@GithubWebhookEvents(['push', 'pullrequest'])
@Post('withGithubEvent')
withRestrictedGithubEvents() {
...
}
}
``
You can read more about this integration [coming soon]()
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.