This is an example GitHub App that creates a CI server that runs CI tests using the GitHub Checks API. You can follow the "Creating CI tests with the Checks API" quickstart guide on developer.github.com to learn how to build the app code in server.rb
.
This project handles check run and check suite webhook events and uses the Octokit.rb library to make REST API calls. The CI test runs RuboCop on all Ruby code in a repository and reports errors using the Checks API. This example project consists of two different servers:
template_server.rb
(GitHub App template code)server.rb
(completed project)To learn how to set up a template GitHub App, follow the "Setting up your development environment" quickstart guide on developer.github.com.
To run the code, make sure you have Bundler installed; then enter bundle install
on the command line.
.env-example
file called .env
..env
file.ruby template_server.rb
or ruby server.rb
on the command line.localhost:3000
.