• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

abiquo/code-review-dashboard: A dashboard to see the status of all opened pull r ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

abiquo/code-review-dashboard

开源软件地址:

https://github.com/abiquo/code-review-dashboard

开源编程语言:

Python 48.0%

开源软件介绍:

Code review dashboard

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:

  • Cold pull requests are the ones where no one has given a +1.
  • Hot! ones are those that are waiting for the last +1 to be merged.
  • Burning pull requests are those that are ready to be merged.

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 abiquo/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> \
    abiquo/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



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap