{"id":37214606,"url":"https://github.com/superseb/webhooks","last_synced_at":"2026-01-15T00:50:05.499Z","repository":{"id":57708102,"uuid":"501237695","full_name":"superseb/webhooks","owner":"superseb","description":":fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs","archived":false,"fork":true,"pushed_at":"2022-06-08T12:49:39.000Z","size":470,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T09:48:30.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"go-playground/webhooks","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superseb.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":"2022-06-08T12:18:17.000Z","updated_at":"2022-06-02T19:54:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/superseb/webhooks","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/superseb/webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fwebhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fwebhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fwebhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fwebhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superseb","download_url":"https://codeload.github.com/superseb/webhooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superseb%2Fwebhooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-15T00:50:04.776Z","updated_at":"2026-01-15T00:50:05.488Z","avatar_url":"https://github.com/superseb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Library webhooks\n================\n\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png\"\u003e![Project status](https://img.shields.io/badge/version-6.0.1-green.svg)\n[![Test](https://github.com/go-playground/webhooks/workflows/Test/badge.svg?branch=master)](https://github.com/go-playground/webhooks/actions)\n[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/go-playground/webhooks?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)\n[![GoDoc](https://godoc.org/github.com/go-playground/webhooks/v6?status.svg)](https://godoc.org/github.com/go-playground/webhooks/v6)\n![License](https://img.shields.io/dub/l/vibe-d.svg)\n\nLibrary webhooks allows for easy receiving and parsing of GitHub, Bitbucket and GitLab Webhook Events\n\nFeatures:\n\n* Parses the entire payload, not just a few fields.\n* Fields + Schema directly lines up with webhook posted json\n\nNotes:\n\n* Currently only accepting json payloads.\n\nInstallation\n------------\n\nUse go get.\n\n```shell\ngo get -u github.com/go-playground/webhooks/v6\n```\n\nThen import the package into your own code.\n\n\timport \"github.com/go-playground/webhooks/v6\"\n\nUsage and Documentation\n------\n\nPlease see http://godoc.org/github.com/go-playground/webhooks/v6 for detailed usage docs.\n\n##### Examples:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"net/http\"\n\n\t\"github.com/go-playground/webhooks/v6/github\"\n)\n\nconst (\n\tpath = \"/webhooks\"\n)\n\nfunc main() {\n\thook, _ := github.New(github.Options.Secret(\"MyGitHubSuperSecretSecrect...?\"))\n\n\thttp.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) {\n\t\tpayload, err := hook.Parse(r, github.ReleaseEvent, github.PullRequestEvent)\n\t\tif err != nil {\n\t\t\tif err == github.ErrEventNotFound {\n\t\t\t\t// ok event wasn;t one of the ones asked to be parsed\n\t\t\t}\n\t\t}\n\t\tswitch payload.(type) {\n\n\t\tcase github.ReleasePayload:\n\t\t\trelease := payload.(github.ReleasePayload)\n\t\t\t// Do whatever you want from here...\n\t\t\tfmt.Printf(\"%+v\", release)\n\n\t\tcase github.PullRequestPayload:\n\t\t\tpullRequest := payload.(github.PullRequestPayload)\n\t\t\t// Do whatever you want from here...\n\t\t\tfmt.Printf(\"%+v\", pullRequest)\n\t\t}\n\t})\n\thttp.ListenAndServe(\":3000\", nil)\n}\n\n```\n\nContributing\n------\n\nPull requests for other services are welcome!\n\nIf the changes being proposed or requested are breaking changes, please create an issue for discussion.\n\nLicense\n------\nDistributed under MIT License, please see license file in code for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fwebhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperseb%2Fwebhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperseb%2Fwebhooks/lists"}