浏览代码

Hack: stats.sh prints useful project stats for maintainers

Solomon Hykes 11 年之前
父节点
当前提交
edace08327
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      hack/stats.sh

+ 22 - 0
hack/stats.sh

@@ -0,0 +1,22 @@
+#!/bin/bash
+
+## Run this script from the root of the docker repository
+## to query project stats useful to the maintainers.
+## You will need to install `pulls` and `issues` from
+## http://github.com/crosbymichael/pulls
+
+set -e
+
+echo -n "Open pulls: "
+PULLS=$(pulls | wc -l); let PULLS=$PULLS-1
+echo $PULLS
+
+echo -n "Pulls alru: "
+pulls alru
+
+echo -n "Open issues: "
+ISSUES=$(issues list | wc -l); let ISSUES=$ISSUES-1
+echo $ISSUES
+
+echo -n "Issues alru: "
+issues alru