monterail / ghcr-api

GitHub Code Review API
https://github.com/monterail/ghcr-api
MIT License
7 stars 2 forks source link

Project discontinued

We're sorry to say that GHCR stopped being sufficient solution for code review in our growing team and we're no longer supporting it. We still think it's good solution for smaller teams, so we encourage you to try it.

GitHub Code Review API for browser extension

Requirements

Installation

git clone git@github.com:monterail/ghcr-api.git
cd ghcr-api
bin/setup

Create Heroku application (optional)

Create GitHub OAuth application

Edit config/application.yml

URL: YOUR_HOMEPAGE_URL                  # required
GITHUB_CLIENT_ID: ""                    # required
GITHUB_CLIENT_SECRET: ""                # required
GITHUB_ORG: ""                          # optional
REDIS_URL: "redis://127.0.0.1:6379/0"   # required
RAVEN_DSN: ""                           # optional
HIPCHAT_TOKEN: ""                       # optional
HIPCHAT_ROOM: ""                        # optional

Heroku

heroku create
git push heroku master

heroku addons:add pgbackups
heroku addons:add redistogo

rake figaro:heroku

Setup YOUR_HOMEPAGE_URL/api/v1 in browser extension

Authentication

Final setup

Go to your repository settings and select CONNECT this repository to Github Code Review. Then everything should be set up.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request