voleoo / ghcr-api

GitHub Code Review API

Home Page:https://github.com/monterail/ghcr-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • ruby 1.9.2 or higher
  • git
  • redis
  • postgresql

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

  • /api/v1/authorize?redirect_uri=http://github.com/foo/bar authorizes app, generates access token and redirects to redirect_uri with access_token in fragment
  • /api/v1/commits?access_token=xyz authorizes as user connected with access_token

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

About

GitHub Code Review API

https://github.com/monterail/ghcr-api

License:MIT License


Languages

Language:Ruby 92.6%Language:HTML 6.9%Language:Shell 0.5%