Backend for the Aleph Front-End.
This is a simple script that gets all the pull requests of an specified repository that needs to be reviewed, it will return all comments associated to the specified PR.
- Create a Github application.
- Rename
config.sample.json
toconfig.json
. - Install dependencies with
$ npm install
. - The proxy runs by default on port
5000
.
Open the root path, it will send you to the Github autorization page, after that you will be able to do this:
http://pr-reviewer.herokuapp.com/api/pulls?user=agnostic&repo=aleph-proxy
- The
pulls
path will return an empty array if user don't have access to the repo. - All PR's need to have users tagged.
{ error: unauthorized }
-> You need to go to the root path to be authenticated.