{"id":16403958,"url":"https://github.com/benjlevesque/cloudfunc-gh-hook","last_synced_at":"2025-07-12T17:35:12.192Z","repository":{"id":57200793,"uuid":"336519495","full_name":"benjlevesque/cloudfunc-gh-hook","owner":"benjlevesque","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-06T16:26:32.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T13:31:31.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjlevesque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-06T11:15:40.000Z","updated_at":"2021-02-06T16:26:34.000Z","dependencies_parsed_at":"2022-09-16T15:12:19.966Z","dependency_job_id":null,"html_url":"https://github.com/benjlevesque/cloudfunc-gh-hook","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/benjlevesque/cloudfunc-gh-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjlevesque%2Fcloudfunc-gh-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjlevesque%2Fcloudfunc-gh-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjlevesque%2Fcloudfunc-gh-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjlevesque%2Fcloudfunc-gh-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjlevesque","download_url":"https://codeload.github.com/benjlevesque/cloudfunc-gh-hook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjlevesque%2Fcloudfunc-gh-hook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025833,"owners_count":23699832,"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":[],"created_at":"2024-10-11T05:50:51.886Z","updated_at":"2025-07-12T17:35:12.155Z","avatar_url":"https://github.com/benjlevesque.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  cloudfunc-gh-hook\n\nRun a Github webhook on Google Cloud functions. This is a wrapper around  [@octokit/webhook](https://github.com/octokit/webhooks.js)'s `verifyAndReceive` method  to simplify configuration specific to Google Cloud function.\n\n## Installation\n\n```bash\nyarn add cloudfunc-gh-hook\n```\n\n## Usage\n\n```typescript\nimport { handler } from \"cloudfunc-gh-hook\";\n\nexport const main = handler({\n  \"release.released\": (event) =\u003e console.log(event),\n});\n\n```\n\n## Development \u0026 Deployment\n\nSee https://github.com/benjlevesque/cloudfunc-gh-hook-template for details about development environment and deployment.\n\n\n## API\n\nThere is only a root endpoint that accepts a `POST` HTTP request.\n\nPossible responses:\n- 404 for a non POST request\n- 403 for an invalid or missing secret header\n- 422 when missing required headers `x-github-delivery`, `x-github-event` and `x-hub-signature`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjlevesque%2Fcloudfunc-gh-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjlevesque%2Fcloudfunc-gh-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjlevesque%2Fcloudfunc-gh-hook/lists"}