Skip to content

devexp-org/review-bot

Repository files navigation

review bot

Automaticaly choose reviewers for pull requests.

License Github Issues Travis Status Coveralls

Table of Content

How Does It Look Like

review badges

Getting Started

  • Setup mongodb and node >= 0.12
  • Clone the repo
  • npm i --production inside
  • Setup configuration (Read more about configuration here)
  • Go To
    • your project on GitHub > Settings > Webhooks & services > Add Webhook or
    • your organization on GitHub > Settings > Webhooks > Add Webhook
    • webhook settings
  • Payload URL — http://yourhost/github/webhook
  • Run NODE_ENV=production npm start or NODE_ENV=production forever start start.js
  • Open — http://yourhost/ and check if everything is up and running

Configuration

You'll get default configuration, but at least you need to set up GitHub auth token and Mongodb.

In config/default.json you can find section about mongodb, change host and db name if needed. And configuration for github, change host if you use in-house github installation:

"mongoose": {
  "path": "./core/services/mongoose",
  "options": {
    "host": "mongodb://localhost/devexp"
  },
  ...
},
...
"github": {
  "path": "./core/services/github",
  "options": {
    "host": "api.github.com",
    ...
  },
  "dependencies": []
},

Also you need to change review badges url in config/default.json:

"review-badges": {
  "path": "./core/services/review-badges",
  "options": {
    "url": "http://localhost:8080/badges/",
    "style": "flat"
  },
  "dependencies": [ ... ]
},

In file config/secret.json you can find configuration for github api tokens:

"github": {
  "options": {
    "authenticate": {
      "type": "oauth",
      "token": "your_auth_token"
    }
  }
}

Choose these scopes for access token:

access token

File config/secret.json supposted to be used for tokens, passwords etc.

Docs

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •