{"repo":"palantir/go-githubapp","free":true,"listed":false,"github":"https://github.com/palantir/go-githubapp","clone":"git clone https://github.com/palantir/go-githubapp.git","description":"A simple Go framework for building GitHub Apps","language":"Go","stars":448,"topics":["golang","github-app","framework","octo-correct-managed"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"go-githubapp A library for building GitHub Apps and other services that handle GitHub webhooks. The library provides an http.Handler implementation that dispatches webhook events to the correct place, removing boilerplate and letting you focus on the logic of your application. Usage + Examples + Dependencies Asynchronous Dispatch Structured Logging GitHub Clients Metrics Background Jobs and Multi-Organization Operations Config Loading OAuth2 Stability and Versioning Guarantees Contributing Usage Most users will implement githubapp.EventHandler for each webhook event that needs to be handled. A single implementation can also respond to multiple event types if they require the same actions: We recommend embedding githubapp.ClientCreator in handler implementations as an easy way to access GitHub clients. Once you define handlers, register them with an event dispatcher and associate it with a route in any net/http -compatible HTTP router: We recommend using go-baseapp as the minimal server framework for writing github apps, though go-githubapp works well with the standard library and can be easily integrated into most existing frameworks. Examples The example package contains a fully functional server using go-githubapp . The example app responds to comments on pull requests by commenting with a copy of the comment body. To run the app, update example/config.yml with appropriate secrets and then run: ./godelw run example Dependencies go-githubapp has minimal dependencies, but doe","default_branch":null,"files":null,"tree":[],"storefront":"/r/palantir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/palantir/go-githubapp/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."}