{"id":15622798,"url":"https://github.com/rjz/githubhook","last_synced_at":"2025-04-28T16:14:27.738Z","repository":{"id":57487761,"uuid":"44509912","full_name":"rjz/githubhook","owner":"rjz","description":"Github webhook parser in golang","archived":false,"fork":false,"pushed_at":"2023-12-26T16:16:59.000Z","size":14,"stargazers_count":53,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-28T16:14:20.352Z","etag":null,"topics":["github","github-hook","github-webhooks","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rjz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-19T03:48:45.000Z","updated_at":"2024-09-15T07:29:38.000Z","dependencies_parsed_at":"2023-12-26T17:52:47.373Z","dependency_job_id":null,"html_url":"https://github.com/rjz/githubhook","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fgithubhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fgithubhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fgithubhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fgithubhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjz","download_url":"https://codeload.github.com/rjz/githubhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342725,"owners_count":21574245,"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","github-hook","github-webhooks","golang"],"created_at":"2024-10-03T09:55:15.929Z","updated_at":"2025-04-28T16:14:27.675Z","avatar_url":"https://github.com/rjz.png","language":"Go","readme":"githubhook\n===============================================\n\nGolang parser for [github webhooks][gh-webhook]. Not a server, though it could\nbe integrated with one.\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/rjz/githubhook)](https://goreportcard.com/report/github.com/rjz/githubhook)\n[![GoDoc](https://godoc.org/github.com/rjz/githubhook?status.svg)](https://godoc.org/github.com/rjz/githubhook)\n\nInstallation\n-----------------------------------------------\n\n```ShellSession\n$ go get gopkg.in/rjz/githubhook.v0\n```\n\nUsage\n-----------------------------------------------\n\nGiven an incoming `*http.Request` representing a webhook signed with a `secret`,\nuse `githubhook` to validate and parse its content:\n\n```go\nsecret := []byte(\"don't tell!\")\nhook, err := githubhook.Parse(secret, req)\n```\n\nPlays nicely with the [google/go-github][gh-go-github] client!\n\n```go\nevt := github.PullRequestEvent{}\nif err := json.Unmarshal(hook.Payload, \u0026evt); err != nil {\n  fmt.Println(\"Invalid JSON?\", err)\n}\n```\n\n[gh-webhook]: https://developer.github.com/webhooks/\n[gh-go-github]: https://github.com/google/go-github\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fgithubhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjz%2Fgithubhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fgithubhook/lists"}