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
- ruby 1.9.2 or higher
- git
- redis
- postgresql
git clone git@github.com:monterail/ghcr-api.git
cd ghcr-api
bin/setup
Create Heroku application (optional)
Create GitHub OAuth application
- Application name: 'My GHCR Instance'
- Homepage URL: 'http://ghcr-api.dev' or 'http://my-heroku-app.com'
- Authorization callback URL: 'YOUR_HOMEPAGE_URL/api/v1/authorize/callback'
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 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
/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
Go to your repository settings and select CONNECT this repository to Github Code Review
. Then everything should be set up.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request