{"repo":"cbrgm/githubevents","free":true,"listed":false,"github":"https://github.com/cbrgm/githubevents","clone":"git clone https://github.com/cbrgm/githubevents.git","description":"GitHub webhook events toolset for Go :rocket:","language":"Go Template","stars":92,"topics":["codegen","github","go","module","webhooks","events","go-library","golang","webhook"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"githubevents GitHub webhook events toolset for Go githubevents is a webhook events toolset for the Go programming language inspired by octokit/webhooks.js . This library makes use of google/go-github and provides functionality to register callbacks for Github events and their actions, so that you can easily execute your own logic in response to webhook events. --- Usage API + Constructor + Callbacks + OnBeforeAny + OnAfterAny + OnError Supported Webhooks Events Local Development Compatibility Contributing & License GitHub Events V2 Released - Breaking Changes V2 of githubevents has been released and introduces breaking changes that require refactoring to upgrade: - The import path has changed and is now: github.com/cbrgm/githubevents/v2/githubevents - context.Context has been added as the first argument to callback functions. Existing callbacks must be updated to accommodate this change. Please ensure you update your import statements and refactor callback function signatures accordingly. Usage Create a new githubevents.EventHandler , register callbacks and start a http server. For more usage examples, please have a look at the examples directory. API Please refer to pkg.go.dev for a full list of supported callback functions. Constructor To create a new githubevents.EventHandler use the following constructor: secretkey is the GitHub Webhook secret token. If your webhook does not contain a secret token, you can set nil . This is intended for local development purposes only and","default_branch":null,"files":null,"tree":[],"storefront":"/r/cbrgm","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cbrgm/githubevents/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}