An open API service indexing awesome lists of open source software.

https://github.com/june29/github-app-rails-example

A tiny GitHub App example built with Rails.
https://github.com/june29/github-app-rails-example

github-app rails ruby ruby-on-rails

Last synced: about 1 year ago
JSON representation

A tiny GitHub App example built with Rails.

Awesome Lists containing this project

README

          

# GitHub App example built with Rails

A tiny GitHub App example built with Rails.

## How to run

1. Create your GitHub App on Register new GitHub App
- Set `Webhook URL` to the server running this application
- Set `Webhook secret` for security
- Set `Read & Write` permission for `Pull requests`
2. Create and configure `.env` file
- Set `GITHUB_APP_IDENTIFIER` from your GitHub App
- Set `GITHUB_WEBHOOK_SECRET` from your GitHub App
- Set `GITHUB_HOST` optionally, if you use GitHub Enterprise
3. Put `github-app.pem` on project root directory
- Get from your GitHub App config page
4. Run `rails server`

## References I read

- For GitHub
- Building GitHub Apps | GitHub Developer Guide
- Building Your First GitHub App | GitHub Developer Guide
- platform-samples/api/ruby/building-your-first-github-app at master · github/platform-samples
- Authenticating with GitHub Apps | GitHub Developer Guide
- For GitHub Enterprise (v2.14)
- Authenticating with GitHub Apps | GitHub Developer Guide