Giter VIP home page Giter VIP logo

review-bot's Introduction

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

review-bot's People

Contributors

artems avatar d4rkr00t avatar greenkeeperio-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.