Giter VIP home page Giter VIP logo

pr-police's Introduction

Pr. Police Build Status

Pr. Police logo

About

Pr. Police is a slackbot that sends to configured slack channels a listing of open pull requests that are waiting for a review. It supports watching multiple repositories, and filtering the pull requests by label.

This project is part of the Talkdesk Hackathon April 2017.

Running the bot

The quick and easy way

The easiest way to get an instance of Pr. Police up and running is to deploy it to Heroku by clicking on the button below.

Deploy

You'll still need to fill in all the environment variables. For more info on this, head down to the Configuration section.

Via NPM

npm install pr-police

Manually

Git clone this repository then:

npm install

Run

npm start

This will start the server locally until Ctrl-C is pressed.

Note: You will need to pass all the required env vars.

Configuration

Pr. Police has the following environment variables available:

GH_TOKEN

The github account token to access the repos

SLACK_TOKEN

The slack token for the bot to access your slack team

GH_REPOS

The list of repositories to watch. The format is user/repo and comma separated.

Example: rogeriopvl/gulp-ejs, rogeriopvl/pullhub, talkdesk/pr-police

GH_LABELS

The list of labels to filter pull-requests. So imagine, your team uses the label needs review for pull-requests waiting for review, you'll have to fill in: needs review. Multiple labels are comma separated.

SLACK_CHANNELS

The list of channels on your team where Pr. Police will post the announcements. Multiple channels are comma separated.

SLACK_GROUPS

The list of private groups on your team where Pr. Police will post the announcements. Multiple channels are comma separated.

CHECK_INTERVAL

Time interval for announcing the pull-requests on slack. In milliseconds. Default: 3600000.

SLACK_BOT_NAME

The name of your Pr. Police bot on slack.

SLACK_BOT_ICON

URL of the icon for the slack bot when sending messages.

Credits

Pr. Police was developed by RogΓ©rio Vicente during one of Talkdesk's internal hackathons.

Artwork created by Micaela Neto

pr-police's People

Contributors

rogeriopvl avatar

Watchers

James Cloos avatar Marcus Gomes avatar  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.