{"id":19642882,"url":"https://github.com/dev-thought/nestjs-github-webhooks","last_synced_at":"2025-04-28T12:33:30.450Z","repository":{"id":40730725,"uuid":"226954502","full_name":"Dev-Thought/nestjs-github-webhooks","owner":"Dev-Thought","description":"Connect your Github webhooks with NestJs - modern, fast, powerful node.js web framework","archived":false,"fork":false,"pushed_at":"2023-01-24T00:55:13.000Z","size":1480,"stargazers_count":11,"open_issues_count":14,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:05:02.462Z","etag":null,"topics":["github-webhooks","nestjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dev-Thought.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-09T19:49:58.000Z","updated_at":"2023-09-30T22:55:25.000Z","dependencies_parsed_at":"2023-02-13T07:00:32.471Z","dependency_job_id":null,"html_url":"https://github.com/Dev-Thought/nestjs-github-webhooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Thought%2Fnestjs-github-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Thought%2Fnestjs-github-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Thought%2Fnestjs-github-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Thought%2Fnestjs-github-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dev-Thought","download_url":"https://codeload.github.com/Dev-Thought/nestjs-github-webhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251314044,"owners_count":21569543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-webhooks","nestjs"],"created_at":"2024-11-11T14:16:50.639Z","updated_at":"2025-04-28T12:33:30.444Z","avatar_url":"https://github.com/Dev-Thought.png","language":"TypeScript","funding_links":["https://opencollective.com/nest","https://paypal.me/kamilmysliwiec"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003eA progressive \u003ca href=\"http://nodejs.org\" target=\"blank\"\u003eNode.js\u003c/a\u003e framework for building efficient and scalable server-side applications, heavily inspired by \u003ca href=\"https://angular.io\" target=\"blank\"\u003eAngular\u003c/a\u003e.\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/~nestjscore\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@nestjs/core.svg\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://circleci.com/gh/nestjs/nest\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/circleci/build/github/nestjs/nest/master\" alt=\"CircleCI\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/nestjs/nest?branch=master\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5\" alt=\"Coverage\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#backer\"\u003e\u003cimg src=\"https://opencollective.com/nest/backers/badge.svg\" alt=\"Backers on Open Collective\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/nest#sponsor\"\u003e\u003cimg src=\"https://opencollective.com/nest/sponsors/badge.svg\" alt=\"Sponsors on Open Collective\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://paypal.me/kamilmysliwiec\"\u003e\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-dc3d53.svg\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/nestframework\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/nestframework.svg?style=social\u0026label=Follow\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n  \u003c!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)\n  [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)--\u003e\n\n## Description\n\n[Github Webhooks](https://developer.github.com/webhooks/) module for [Nest](https://github.com/nestjs/nest).\n\n## Installation\n\n```bash\n$ npm i --save @dev-thought/nestjs-github-webhooks\n```\n\n## Quick Start\n\n### Import module\n\nIn `app.module.ts`:\n\n```typescript\nimport { GithubWebhooksModule } from '@dev-thought/nestjs-github-webhooks';\n\n@Module({\n  imports: [\n    ...\n    GithubWebhooksModule.forRoot({\n      webhookSecret: 'YOUR_WEBHOOK_APIKEY'\n    }),\n  ];\n})\nclass AppModule {}\n```\n\n### Async import example\n\n```typescript\n@Module({\n  imports: [\n    ...\n    GithubWebhooksModule.forRootAsync({\n      useFactory: () =\u003e ({ webhookSecret: 'SomeSecret' })\n    })\n  ];\n})\nclass AppModule {}\n```\n\n### Use the guard\n\n```typescript\nimport {\n  GithubGuard,\n  GithubWebhookEvents,\n} from '@dev-thought/nestjs-github-webhooks';\n\n@Controller()\nexport class AppController {\n\n  @UseGuards(GithubGuard)\n  @Post()\n  githubWebhoook() {\n    ...\n  }\n\n  @UseGuards(GithubGuard)\n  @GithubWebhookEvents(['push', 'pullrequest'])\n  @Post('withGithubEvent')\n  withRestrictedGithubEvents() {\n    ...\n  }\n}\n```\n\n## Tutorial\n\nYou can read more about this integration [here](https://medium.com/dev-thought/github-webhooks-with-nestjs-1e97c17418f6)\n\n## Support\n\nNest 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](https://docs.nestjs.com/support).\n\n## Stay in touch\n\n- Author Github Webhooks Module for NestJS - [Mitko Tschimev](https://github.com/MitkoTschimev)\n- Twitter Author - [Mitko Tschimev](https://twitter.com/MTschimev)\n- Author NestJS - [Kamil Myśliwiec](https://kamilmysliwiec.com)\n- Website NestJS - [https://nestjs.com](https://nestjs.com/)\n- Twitter NestJS - [@nestframework](https://twitter.com/nestframework)\n\n## License\n\nThis Module is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-thought%2Fnestjs-github-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-thought%2Fnestjs-github-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-thought%2Fnestjs-github-webhooks/lists"}