Giter VIP home page Giter VIP logo

pullsbury's Introduction

   ,------.
   `-____-'        ,-----------.
    ,i--i.         |           |
   / @  @ \       /  HEE HEE!  |
  | -.__.- | ___-'             J
   \.    ,/ """"""""""""""""""'
   ,\""""/.
 ,'  `--'  `.
(_,i'    `i._)
   |      |
   |  ,.  |
   | |  | |
   `-'  `-'

Pullsbury Gitboy

Build Status

Pullsbury Gitboy helps teams collaborate more effectively on pull requests. It listens to webhooks from github, then it posts a slack notification into a team channel once a PR has been opened.

Pullsbury Gitboy requires:

  • Python 2.7
  • RabbitMQ (or any other Message broker that is compatible with Celery)
  • A publically addressable hostname/IP that either github or your github:enterprise can reach.
  • A github account with read/write access to the repositories you want to watch. This account is used fetch additional information about the pull requests it sees.

Pullsbury Gitboy runs as two processes. A web process handles accepting webhooks from github, and a celery process handles asking github for more information, and the actual slack calls. You'll also need to have rabbitmq-server running.

Installation

You install Pullsbury Gitboy by cloning the repository and installing dependecies, or by using docker. If you are not using docker, it is recommended that you use virtualenv to save shaving yaks down the road.

git clone git://github.com/AntonNguyen/pullsbury.git
cd pullsbury
pipenv install

Once the dependencies are installed you should configure the repositories you want to watch.

Using Docker

To use docker, you'll need to install both docker, docker-compose and possibly docker toolbox depending on your operating system. Once you have the docker installed, you can boot up pullsbury into docker using:

docker build --tag=pullsbury_image .
docker-compose up -d broker worker web

Edit docker-composer.yml and customise your configuration by setting keys under environment for the web and worker processes. For the most basic installation you'll need to set at least GITHUB_USERNAME and GITHUB_PASSWORD (or GITHUB_OAUTH_TOKEN), and PULLSBURY_SERVER_NAME.

Pullsbury Gitboy Configuration

Pullsbury Gitboy is configured through a settings file. Both the web app and celery process share the same configuration file, so configuration is easier to manage and share.

  • Edit the required configuration options, or set the correct environment variables.
  • Set the PULLSBURY_SETTINGS environment variable to the path of your configuration files. In *nix system this can be done via:

export PULLSBURY_SETTINGS='/path/to/settings.py'

  • You can skip setting PULLSBURY_SETTINGS if you're running Pullsbury Gitboy from a directory containing your settings.py file.

Running Pullsbury Gitboy

After setting up configuration you'll need to start up both processes:

pipenv run gunicorn pullsbury.web:app

Now when ever a pull request is opened for a registered repository new jobs will be spun up and notify the appropriate slack channels.

pullsbury's People

Contributors

antonnguyen avatar

Watchers

 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.