GithubHelp home page GithubHelp logo

isabella232 / code-review-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jclouds/code-review-dashboard

0.0 0.0 0.0 177 KB

A dashboard to see the status of all opened pull requests.

Python 38.55% CSS 42.08% HTML 19.37%

code-review-dashboard's Introduction

Code review dashboard

Dashboard

View it at: http://jclouds-pulls.herokuapp.com/

A dashboard to see the status of all opened pull requests. It is configurable and extensible so you can customize the information that is shown for each pull request. The basic template provided as an example shows the pull requests classified in three columns:

  • Need More Work pull requests are those that are failing the build or still have not been validated by the CI system.
  • Jenkins Happy pull requests are those that pass the build but still have not been +1'ed by anyone.
  • Someone Likes! pull requests are those that have some +1.

It also shows in red the pull requests that have been without activity in the configured days, and shows in green the pull requests where the current user has participated.

Configuration

The dashboard is configured in the config.py file. Feel free to edit and adapt it to your needs.

Running as a Docker container (recommended)

If you prefer to run the dashboard as a Docker container, you just have to build the image and run the container as follows:

# Build the Docker image (only the first time)
docker build -t jclouds/code-review-dashboard .

# Run the container
docker run -d -p 80:8080 \
    -e CLIENT_ID=<client id> \
    -e CLIENT_SECRET=<client secret> \
    -e SECRET_KEY=<secret key> \
    jclouds/code-review-dashboard

Running without Docker

The dashboard uses Flask and Requests. You can install them using Pip as follows:

pip install Flask requests

If you don't have pip installed, you can install it following the instructions found in the site. It can be installed in a virtualenv or in the core system. Here is how you can install it in your system. Installing it into a virtualenv should be the same, once it has been activated:

# Install setuptools
wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
sudo sh sh setuptools-0.6c9-py2.4.egg

# Install pip
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py

Once you have installed the requirements you can run the dashboard as follows:

python application.py

Deploying to Heroku

The application can also be deployed to Heroku. To deploy it you just have to create the application and deploy it as follows:

# Create and configure the Heroku application
heroku create <application name>

# Deploy the application
git push heroku master

# Set application ID and secret as heroku envs
heroku config:set CLIENT_ID=ID
heroku config:set CLIENT_SECRET=secret

# Set a flask application secret key
heroku config:set SECRET_KEY=secret-key

code-review-dashboard's People

Contributors

nacx avatar enricruiz avatar ssedano avatar sergicastro avatar aserrallerios avatar xfernandez 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.