| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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-webhooksIn 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.
This Module is MIT licensed.
| Back | FazBrowse Home | New Git URL |